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:
@@ -1105,6 +1105,7 @@ ssh_string pki_publickey_to_blob(const ssh_key key)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
ssh_string_fill(e, (char *) tmp, size);
|
ssh_string_fill(e, (char *) tmp, size);
|
||||||
|
gcry_sexp_release(sexp);
|
||||||
|
|
||||||
sexp = gcry_sexp_find_token(key->rsa, "n", 0);
|
sexp = gcry_sexp_find_token(key->rsa, "n", 0);
|
||||||
if (sexp == NULL) {
|
if (sexp == NULL) {
|
||||||
|
Reference in New Issue
Block a user