[PATCH] curl-shim: clean up varargs
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Feb 18 10:11:31 CET 2015
* keyserver/curl-shim.c (curl_easy_setopt) : ensure that va_end is
called.
--
stdarg(3) says:
Each invocation of va_start() must be matched by a
corresponding invocation of va_end() in the same function.
Observed by Joshua Rogers <honey at internot.info>
Debian-Bug-Id: #773475
---
keyserver/curl-shim.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index 696efe2..dc380eb 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -164,6 +164,8 @@ curl_easy_setopt(CURL *curl,CURLoption option,...)
break;
}
+ va_end(ap);
+
return handle_error(curl,CURLE_OK,NULL);
}
--
2.1.4
More information about the Gnupg-devel
mailing list