diff --git a/CHANGES b/CHANGES index b2e31d6cf417e04fbc125a64bb8818e445c83202..d4d87ec5cf22875ca0685852b1abf91268ebea81 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 7a1b2b7388b8fbcf942d717521eb914486c7732a..f495d361b9b1e1fc78156c7058451b1c80b84d45 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); }