]> granicus.if.org Git - apache/commitdiff
abort if BIO_new fails due to lack of memory
authorStefan Fritsch <sf@apache.org>
Tue, 1 Jan 2013 16:23:28 +0000 (16:23 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 1 Jan 2013 16:23:28 +0000 (16:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427456 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_log.c

index 3f6d6edc91b2ba46ae238698846757c85190b780..7f755c1ff0e31bb08ab858ec72aa95ab318aa4cd 100644 (file)
@@ -182,6 +182,9 @@ static void ssl_log_cert_error(const char *file, int line, int level,
 
             BIO_free(bio);
         }
+        else {
+            ap_abort_on_oom();
+        }
     }
     else {
         apr_snprintf(buf + msglen, sizeof buf - msglen,