]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_log.c (ssl_log_cert_error): Use string
authorJoe Orton <jorton@apache.org>
Thu, 26 Sep 2019 09:17:58 +0000 (09:17 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 26 Sep 2019 09:17:58 +0000 (09:17 +0000)
  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

index c70218863f3b8a11412bf66d684952b841ad34f6..451b83e4975677e9d43fd8db7bef0bbb4c4fb995 100644 (file)
@@ -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());