mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +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:
@@ -200,6 +200,9 @@ SSH_PACKET_CALLBACK(ssh_packet_client_dhgex_group)
|
|||||||
session->dh_handshake_state = DH_STATE_INIT_SENT;
|
session->dh_handshake_state = DH_STATE_INIT_SENT;
|
||||||
|
|
||||||
rc = ssh_packet_send(session);
|
rc = ssh_packet_send(session);
|
||||||
|
if (rc == SSH_ERROR) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
bignum_safe_free(one);
|
bignum_safe_free(one);
|
||||||
bignum_safe_free(pmin1);
|
bignum_safe_free(pmin1);
|
||||||
|
|||||||
Reference in New Issue
Block a user