diff options
author | Daniel Kahn Gillmor <[email protected]> | 2015-02-22 04:10:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-23 09:52:48 +0000 |
commit | 2b2f2767851eccb12e591c7a3fa432e6bf9db8f2 (patch) | |
tree | d06a469d2bac489bfaa9df3d62940f08e5512e67 | |
parent | gpg: Print better diagnostics for keyserver operations. (diff) | |
download | gnupg-2b2f2767851eccb12e591c7a3fa432e6bf9db8f2.tar.gz gnupg-2b2f2767851eccb12e591c7a3fa432e6bf9db8f2.zip |
curl-shim: clean up varargs
* 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 <[email protected]>
Debian-Bug-Id: #773475
[dkg: rebased to STABLE-BRANCH-1-4]
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
-rw-r--r-- | keyserver/curl-shim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c index ce510cb2b..72c0f0485 100644 --- a/keyserver/curl-shim.c +++ b/keyserver/curl-shim.c @@ -155,6 +155,8 @@ curl_easy_setopt(CURL *curl,CURLoption option,...) break; } + va_end(ap); + return handle_error(curl,CURLE_OK,NULL); } |