From baaf6b9c49b417de87d7279623442c5ee78f5930 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 26 Sep 2019 09:17:58 +0000 Subject: [PATCH] * modules/ssl/ssl_engine_log.c (ssl_log_cert_error): Use string length returned by apr_vsnprintf. No functional change. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1867569 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_log.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/ssl/ssl_engine_log.c b/modules/ssl/ssl_engine_log.c index c70218863f..451b83e497 100644 --- a/modules/ssl/ssl_engine_log.c +++ b/modules/ssl/ssl_engine_log.c @@ -123,10 +123,8 @@ static void ssl_log_cert_error(const char *file, int line, int level, int msglen, n; char *name; - apr_vsnprintf(buf, sizeof buf, format, ap); - - msglen = strlen(buf); - + msglen = apr_vsnprintf(buf, sizeof buf, format, ap); + if (cert) { BIO *bio = BIO_new(BIO_s_mem()); -- 2.50.1