1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-10-29 00:34:53 +03:00

dh-gex: Use SSH_STRING_FREE()

Fixes T183

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-11-05 13:10:56 +01:00
parent 45d9802e1b
commit 80d092037f

View File

@@ -265,7 +265,7 @@ static SSH_PACKET_CALLBACK(ssh_packet_client_dhgex_reply)
}
rc = ssh_dh_import_next_pubkey_blob(session, pubkey_blob);
ssh_string_free(pubkey_blob);
SSH_STRING_FREE(pubkey_blob);
if (rc != 0) {
goto error;
}