aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-01-26 14:15:01 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-26 14:15:01 +0100
commit9b2eefe62c03b85ec5ec2e19a894e3e9b1640be2 (patch)
tree1ffceb37a843ba79f19ad30c2edff5d8b1f74c28 /src
parent8ec80d1f5dca6510aae726356a5f1f327e199b8f (diff)
downloadlibssh-9b2eefe62c03b85ec5ec2e19a894e3e9b1640be2.tar.gz
libssh-9b2eefe62c03b85ec5ec2e19a894e3e9b1640be2.tar.xz
libssh-9b2eefe62c03b85ec5ec2e19a894e3e9b1640be2.zip
dh-gex: Add error check for ssh_packet_send() in ssh_packet_server_dhgex_request
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/dh-gex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dh-gex.c b/src/dh-gex.c
index e5bcb48b..f08b3ba3 100644
--- a/src/dh-gex.c
+++ b/src/dh-gex.c
@@ -614,6 +614,9 @@ static SSH_PACKET_CALLBACK(ssh_packet_server_dhgex_request)
session->dh_handshake_state = DH_STATE_GROUP_SENT;
rc = ssh_packet_send(session);
+ if (rc == SSH_ERROR) {
+ goto error;
+ }
error:
return SSH_PACKET_USED;