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

pki: Use SSH_BUFFER_FREE() in ssh_pki_signature_verify()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2020-02-12 09:44:58 +01:00
parent f208e4b332
commit 0ece6e52aa

View File

@@ -2482,7 +2482,7 @@ int ssh_pki_signature_verify(ssh_session session,
rc = pki_verify_data_signature(sig, key, ssh_buffer_get(sk_buffer),
ssh_buffer_get_len(sk_buffer));
ssh_buffer_free(sk_buffer);
SSH_BUFFER_FREE(sk_buffer);
explicit_bzero(input_hash, SHA256_DIGEST_LEN);
explicit_bzero(application_hash, SHA256_DIGEST_LEN);