From 355e29d881dcf2d255fbe58864ef98dc3bc5653c Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 4 Jul 2022 19:22:30 +0200 Subject: [PATCH] session: Initialize pointers Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index 5125aedf..61b48370 100644 --- a/src/session.c +++ b/src/session.c @@ -1126,7 +1126,7 @@ int ssh_get_publickey_hash(const ssh_key key, size_t *hlen) { ssh_string blob; - unsigned char *h; + unsigned char *h = NULL; int rc; rc = ssh_pki_export_pubkey_blob(key, &blob);