You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by kb...@apache.org on 2012/02/28 07:01:23 UTC

svn commit: r1294471 - /httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c

Author: kbrand
Date: Tue Feb 28 06:01:23 2012
New Revision: 1294471

URL: http://svn.apache.org/viewvc?rev=1294471&view=rev
Log:
properly free the GENERAL_NAMEs, as pointed out in PR 32652

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c?rev=1294471&r1=1294470&r2=1294471&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_util_ssl.c Tue Feb 28 06:01:23 2012
@@ -325,7 +325,7 @@ BOOL SSL_X509_getIDs(apr_pool_t *p, X509
     }
 
     if (names)
-        sk_GENERAL_NAME_free(names);
+        sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free);
 
     /* Second, the CN-IDs (commonName attributes in the subject DN) */
     subj = X509_get_subject_name(x509);