aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 20:22:05 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 20:22:05 +0200
commit4bb790fb5de3d64097cae77955a96260d11ae3db (patch)
tree4858835cbe489ba76ce18d79d554d3238832dd76
parent7d32ec5d28ecdf72f69d14794fd2fc98003b3fdd (diff)
downloadlibssh-4bb790fb5de3d64097cae77955a96260d11ae3db.tar.gz
libssh-4bb790fb5de3d64097cae77955a96260d11ae3db.tar.xz
libssh-4bb790fb5de3d64097cae77955a96260d11ae3db.zip
Fix uninitialized variable used
-rw-r--r--libssh/keys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index 5578171e..09fc64c1 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -1318,6 +1318,8 @@ ssh_string ssh_do_sign(ssh_session session, ssh_buffer sigbuf,
#endif
sign->dsa_sign = NULL;
break;
+ default:
+ return NULL;
}
#ifdef HAVE_LIBGCRYPT
gcry_sexp_release(gcryhash);
@@ -1473,6 +1475,8 @@ ssh_string ssh_sign_session_id(ssh_session session, ssh_private_key privatekey)
#endif
sign->dsa_sign = NULL;
break;
+ default:
+ return NULL;
}
#ifdef HAVE_LIBGCRYPT