diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-01-20 19:30:29 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-01-20 19:31:29 +0100 |
commit | 915d28ffa5c1b3be49e1fa49e854d471a4b61d53 (patch) | |
tree | 9d0c92075048f0adbec5c2f6d04d8ee9266bb794 | |
parent | 884bff5bdc4848a91f2f0d522160e916aa669562 (diff) | |
download | libssh-915d28ffa5c1b3be49e1fa49e854d471a4b61d53.tar.gz libssh-915d28ffa5c1b3be49e1fa49e854d471a4b61d53.tar.xz libssh-915d28ffa5c1b3be49e1fa49e854d471a4b61d53.zip |
pki: Make sure sig is not used unintialized.
BUG: https://red.libssh.org/issues/167
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 9a7d450098a4fc45ae3f0eb194218c51b133b3f9)
-rw-r--r-- | src/pki.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1365,7 +1365,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; |