From e416ad9772df448635e91bb6153bf811aede13b3 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 4 Jan 1999 21:43:32 +0000 Subject: [PATCH] Free the right thing. --- CHANGES | 3 +++ crypto/x509/x509name.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b2e31d6cf4..d4d87ec5cf 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 7a1b2b7388..f495d361b9 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); }