Free the right thing.
authorBen Laurie <ben@openssl.org>
Mon, 4 Jan 1999 21:43:32 +0000 (21:43 +0000)
committerBen Laurie <ben@openssl.org>
Mon, 4 Jan 1999 21:43:32 +0000 (21:43 +0000)
CHANGES
crypto/x509/x509name.c

diff --git a/CHANGES b/CHANGES
index b2e31d6..d4d87ec 100644 (file)
--- 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 <arne@ats.cyber.ee>]
+
   *) rsa_eay.c would attempt to free a NULL context.
      [Arne Ansper <arne@ats.cyber.ee>]
 
index 7a1b2b7..f495d36 100644 (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);
        }