aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2015-02-18 09:11:31 +0000
committerWerner Koch <[email protected]>2015-02-18 11:26:11 +0000
commit839727503d6ec1186ee2e9e65d0f8bc8fcf8c456 (patch)
treec76f0e914a1d5d4f9cd9976dc44a04ed5d967112
parentgpg: Print better diagnostics for keyserver operations. (diff)
downloadgnupg-839727503d6ec1186ee2e9e65d0f8bc8fcf8c456.tar.gz
gnupg-839727503d6ec1186ee2e9e65d0f8bc8fcf8c456.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
-rw-r--r--keyserver/curl-shim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index be8778096..93d05b007 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -165,6 +165,8 @@ curl_easy_setopt(CURL *curl,CURLoption option,...)
break;
}
+ va_end(ap);
+
return handle_error(curl,CURLE_OK,NULL);
}