aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-02-12 09:44:58 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-02-12 09:44:58 +0100
commit0ece6e52aaa6b1b5b4cc2a06f0fc52486064ecab (patch)
treecf1c8e960c53eca1df7b23a46b8c6b8ab59827d0 /src
parentf208e4b332e29871758524a370a97de4882549bc (diff)
downloadlibssh-0ece6e52aaa6b1b5b4cc2a06f0fc52486064ecab.tar.gz
libssh-0ece6e52aaa6b1b5b4cc2a06f0fc52486064ecab.tar.xz
libssh-0ece6e52aaa6b1b5b4cc2a06f0fc52486064ecab.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index f3ad4a98..8bbc8673 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -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);