[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-cvs
Subject:    svn commit: r1898367 - /httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c
From:       gbechis () apache ! org
Date:       2022-02-24 11:48:56
Message-ID: 20220224114856.4128917A244 () svn01-us-east ! apache ! org
[Download RAW message or body]

Author: gbechis
Date: Thu Feb 24 11:48:55 2022
New Revision: 1898367

URL: http://svn.apache.org/viewvc?rev=1898367&view=rev
Log:
return early if ASN1_STRING_new fails
bz 65902

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

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c?rev=1898367&r1=1898366&r2=1898367&view=diff
 ==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c Thu Feb 24 11:48:55 2022
@@ -1104,6 +1104,10 @@ static int dump_extn_value(BIO *bio, ASN
     ASN1_STRING *ret = ASN1_STRING_new();
     int rv = 0;
 
+    if(!ret) {
+      return rv;
+    }
+
     /* This allows UTF8String, IA5String, VisibleString, or BMPString;
      * conversion to UTF-8 is forced. */
     if (d2i_DISPLAYTEXT(&ret, &pp, str->length)) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic