You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by do...@apache.org on 2001/11/22 03:58:07 UTC

cvs commit: httpd-2.0/modules/ssl ssl_engine_log.c

dougm       01/11/21 18:58:07

  Modified:    modules/ssl ssl_engine_log.c
  Log:
  dont va_start() in ssl_log() unless we are actually going to log something
  
  Revision  Changes    Path
  1.7       +2 -2      httpd-2.0/modules/ssl/ssl_engine_log.c
  
  Index: ssl_engine_log.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_log.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ssl_engine_log.c	2001/08/23 18:47:32	1.6
  +++ ssl_engine_log.c	2001/11/22 02:58:07	1.7
  @@ -196,7 +196,6 @@
       char *cpA;
   
       /*  initialization  */
  -    va_start(ap, msg);
       safe_errno = errno;
       sc = mySrvConfig(s);
   
  @@ -251,7 +250,9 @@
       }
   
       /*  create custom message  */
  +    va_start(ap, msg);
       apr_vsnprintf(vstr, sizeof(vstr), msg, ap);
  +    va_end(ap);
   
       /*  write out SSLog message  */
       if ((add & SSL_ADD_ERRNO) && (add & SSL_ADD_SSLERR))
  @@ -309,7 +310,6 @@
       if (sc->fileLogFile != NULL)
           apr_file_flush(sc->fileLogFile);
       errno = safe_errno;
  -    va_end(ap);
       return;
   }