aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-01-20 19:30:29 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-01-20 19:31:12 +0100
commit9a7d450098a4fc45ae3f0eb194218c51b133b3f9 (patch)
treefb7bf192c0ecb0fd2fa5dabe477abd864bc74135
parent7070117dc382acdffd6768b8b79063d3df9b3114 (diff)
downloadlibssh-9a7d450098a4fc45ae3f0eb194218c51b133b3f9.tar.gz
libssh-9a7d450098a4fc45ae3f0eb194218c51b133b3f9.tar.xz
libssh-9a7d450098a4fc45ae3f0eb194218c51b133b3f9.zip
pki: Make sure sig is not used unintialized.
BUG: https://red.libssh.org/issues/167 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index af472ebb..3b859bb2 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -1412,7 +1412,7 @@ ssh_string ssh_pki_do_sign(ssh_session session,
struct ssh_crypto_struct *crypto =
session->current_crypto ? session->current_crypto :
session->next_crypto;
- ssh_signature sig;
+ ssh_signature sig = NULL;
ssh_string sig_blob;
ssh_string session_id;
int rc;