Free the right thing.

This commit is contained in:
Ben Laurie 1999-01-04 21:43:32 +00:00
parent 4a18cddd16
commit e416ad9772
2 changed files with 4 additions and 1 deletions

View File

@ -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 <arne@ats.cyber.ee>]
*) rsa_eay.c would attempt to free a NULL context.
[Arne Ansper <arne@ats.cyber.ee>]

View File

@ -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);
}