summaryrefslogtreecommitdiffstats
path: root/server/protocol.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2018-10-05 16:05:20 +0200
committerJoe Orton <jorton@apache.org>2018-10-05 16:05:20 +0200
commit68b0e99b652b5bdd4d041d8e1f1e2b5f5069f9cf (patch)
treeeded2fab0351b241d03fe56040c0b982c4fdb9e1 /server/protocol.c
parent* modules/ldap/util_ldap_cache_mgr.c (util_ald_create_caches): Destroy (diff)
downloadapache2-68b0e99b652b5bdd4d041d8e1f1e2b5f5069f9cf.tar.xz
apache2-68b0e99b652b5bdd4d041d8e1f1e2b5f5069f9cf.zip
* server/protocol.c (ap_rvputs): Call va_end before returning in the
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
Diffstat (limited to '')
-rw-r--r--server/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/protocol.c b/server/protocol.c
index c43ce117e6..a95e6a06d7 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -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;
}