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

dh-gex: Add error check for ssh_packet_client_dhgex_group()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2019-04-15 19:58:58 +02:00
parent 33ad6bc54e
commit 77a6fe4a62

View File

@@ -200,6 +200,9 @@ SSH_PACKET_CALLBACK(ssh_packet_client_dhgex_group)
session->dh_handshake_state = DH_STATE_INIT_SENT;
rc = ssh_packet_send(session);
if (rc == SSH_ERROR) {
goto error;
}
bignum_safe_free(one);
bignum_safe_free(pmin1);