1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Fix memleak in gcrypt pki_publickey_to_blob().

This commit is contained in:
Andreas Schneider
2011-08-22 21:56:44 +02:00
parent 9da331e79b
commit 93c4a8e427

View File

@@ -1105,6 +1105,7 @@ ssh_string pki_publickey_to_blob(const ssh_key key)
goto fail;
}
ssh_string_fill(e, (char *) tmp, size);
gcry_sexp_release(sexp);
sexp = gcry_sexp_find_token(key->rsa, "n", 0);
if (sexp == NULL) {