aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-08-16 17:24:11 +0800
committerAndreas Schneider <mail@cynapses.org>2009-08-16 14:41:41 +0200
commit86f983962c9fdd210a1bd2b73965916a1b5337fa (patch)
tree9a792e83f756910542c577d3bdd936d64fc7ad1a
parentb0d6307d4172dd4b20d1d32d6bacc3228bfc096c (diff)
downloadlibssh-86f983962c9fdd210a1bd2b73965916a1b5337fa.tar.gz
libssh-86f983962c9fdd210a1bd2b73965916a1b5337fa.tar.xz
libssh-86f983962c9fdd210a1bd2b73965916a1b5337fa.zip
Fix double free pointer crash in dsa_public_to_string
Signed-off-by: Andreas Schneider <mail@cynapses.org>
-rw-r--r--libssh/keys.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index c53559df..f05083c6 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -540,7 +540,6 @@ static int dsa_public_to_string(DSA *key, BUFFER *buffer) {
goto error;
}
string_fill(n, (char *) tmp, size);
- gcry_sexp_release(sexp);
#elif defined HAVE_LIBCRYPTO
p = make_bignum_string(key->p);