]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
return early if ASN1_STRING_new fails
authorGiovanni Bechis <gbechis@apache.org>
Thu, 24 Feb 2022 11:48:55 +0000 (11:48 +0000)
committerGiovanni Bechis <gbechis@apache.org>
Thu, 24 Feb 2022 11:48:55 +0000 (11:48 +0000)
bz 65902

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898367 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_vars.c

index df7a42b6630919e1bb6790910a7121b59ff2e71f..164556ee4e89daf6ff5c9522d2e7a76bcc31ec9a 100644 (file)
@@ -1104,6 +1104,10 @@ static int dump_extn_value(BIO *bio, ASN1_OCTET_STRING *str)
     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)) {