diff --git a/CHANGES b/CHANGES index b2e31d6cf..d4d87ec5c 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ Changes between 0.9.1c and 0.9.2 + *) X509_name_add_entry() freed the wrong thing after an error. + [Arne Ansper ] + *) rsa_eay.c would attempt to free a NULL context. [Arne Ansper ] diff --git a/crypto/x509/x509name.c b/crypto/x509/x509name.c index 7a1b2b738..f495d361b 100644 --- a/crypto/x509/x509name.c +++ b/crypto/x509/x509name.c @@ -251,7 +251,7 @@ int set; return(1); err: if (new_name != NULL) - X509_NAME_ENTRY_free(ne); + X509_NAME_ENTRY_free(new_name); return(0); }