Don't free rsa (NULL) on failure to parse key

This commit is contained in:
Love Hornquist Astrand
2009-09-19 12:35:27 -07:00
parent b0e2117322
commit 26aefa1853

View File

@@ -639,6 +639,7 @@ rsa_verify_signature(hx509_context context,
out: out:
free_DigestInfo(&di); free_DigestInfo(&di);
if (rsa)
RSA_free(rsa); RSA_free(rsa);
return ret; return ret;
} }