]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/protocol.c (ap_rvputs): Call va_end before returning in the
authorJoe Orton <jorton@apache.org>
Fri, 5 Oct 2018 14:05:20 +0000 (14:05 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 5 Oct 2018 14:05:20 +0000 (14:05 +0000)
  error case, as required by C89/POSIX stdarg.h - Coverity warns for
  this.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842919 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index c43ce117e61084bb2a0d9de9649e4d279fbc7df7..a95e6a06d7293a0eb39250c555d4e208fe46c280 100644 (file)
@@ -2211,6 +2211,7 @@ AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r, ...)
 
         len = strlen(s);
         if (buffer_output(r, s, len) != APR_SUCCESS) {
+            va_end(va);
             return -1;
         }