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

knownhosts: Use SSH_BUFFER_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:17:49 +01:00
parent 6734516278
commit 7ae47df16a

View File

@@ -129,8 +129,8 @@ static int match_hashed_hostname(const char *host, const char *hashed_host)
error:
free(hashed);
ssh_buffer_free(salt);
ssh_buffer_free(hash);
SSH_BUFFER_FREE(salt);
SSH_BUFFER_FREE(hash);
return match;
}