From 8dcffbfbaa0163df4899e35aa71e9f8f0712d839 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 1 Jan 2013 16:23:28 +0000 Subject: [PATCH] abort if BIO_new fails due to lack of memory git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427456 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_log.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ssl/ssl_engine_log.c b/modules/ssl/ssl_engine_log.c index 3f6d6edc91..7f755c1ff0 100644 --- a/modules/ssl/ssl_engine_log.c +++ b/modules/ssl/ssl_engine_log.c @@ -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, -- 2.40.0