1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

server: pubkey auth doesn't work with ecdh

This commit is contained in:
Aris Adamantiadis
2011-09-25 12:56:19 +02:00
parent 5c19cda280
commit b6d0b531f8

View File

@@ -346,12 +346,12 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session,
}
/* Add session id */
str = ssh_string_new(SHA_DIGEST_LEN);
str = ssh_string_new(crypto->digest_len);
if (str == NULL) {
ssh_buffer_free(buffer);
return NULL;
}
ssh_string_fill(str, crypto->session_id, SHA_DIGEST_LEN);
ssh_string_fill(str, crypto->session_id, crypto->digest_len);
rc = buffer_add_ssh_string(buffer, str);
string_free(str);