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 9a7d450098)
This commit is contained in:
Andreas Schneider
2015-01-20 19:30:29 +01:00
parent 884bff5bdc
commit 915d28ffa5

View File

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