Update from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 30 Nov 2008 16:09:04 +0000 (16:09 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 30 Nov 2008 16:09:04 +0000 (16:09 +0000)
crypto/x509v3/v3_alt.c

index e9e7c4a..19b3a8b 100644 (file)
@@ -513,7 +513,8 @@ GENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out,
        return gen;
 
        err:
-       GENERAL_NAME_free(gen);
+       if (!out)
+               GENERAL_NAME_free(gen);
        return NULL;
        }