You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gb...@apache.org on 2022/02/24 11:48:56 UTC

svn commit: r1898367 - /httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c

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)) {