knownhosts: Use SSH_BUFFER_FREE()

Fixes T183

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 7ae47df16a)
This commit is contained in:
Andreas Schneider
2019-11-05 13:17:49 +01:00
parent a888b65ff5
commit 975eb87c19

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;
}