From 839727503d6ec1186ee2e9e65d0f8bc8fcf8c456 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Wed, 18 Feb 2015 04:11:31 -0500 Subject: [PATCH] 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 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 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); }