From a8b2a874deeac6a397b2d2f2f2688e74e3a7b850 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Oct 2019 12:23:56 +0100 Subject: [PATCH] session: Use SSH_STRING_FREE() Fixes T183 Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen (cherry picked from commit 5e6cb6891f9a214ce66d33f45e2b8942eccacc20) --- src/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index 9f1adc0d..c67189ce 100644 --- a/src/session.c +++ b/src/session.c @@ -1025,7 +1025,7 @@ int ssh_get_pubkey_hash(ssh_session session, unsigned char **hash) } md5_update(ctx, ssh_string_data(pubkey_blob), ssh_string_len(pubkey_blob)); - ssh_string_free(pubkey_blob); + SSH_STRING_FREE(pubkey_blob); md5_final(h, ctx); *hash = h; @@ -1214,7 +1214,7 @@ int ssh_get_publickey_hash(const ssh_key key, *hash = h; rc = 0; out: - ssh_string_free(blob); + SSH_STRING_FREE(blob); return rc; }