1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

packet_cb: Fix the if check in ssh_packet_newkeys()

CID 1388446

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-04-18 10:32:15 +02:00
parent c2f8010b60
commit 1a36aa21ba

View File

@@ -180,7 +180,7 @@ SSH_PACKET_CALLBACK(ssh_packet_newkeys){
/* get the server public key */
server_key = ssh_dh_get_next_server_publickey(session);
if (rc < 0) {
if (server_key == NULL) {
return SSH_ERROR;
}