1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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 <honey@internot.info>

Debian-Bug-Id: #773475

[dkg: rebased to STABLE-BRANCH-1-4]
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
Daniel Kahn Gillmor 2015-02-21 23:10:35 -05:00 committed by Werner Koch
parent cf8d89b0ce
commit 2b2f276785
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -155,6 +155,8 @@ curl_easy_setopt(CURL *curl,CURLoption option,...)
break; break;
} }
va_end(ap);
return handle_error(curl,CURLE_OK,NULL); return handle_error(curl,CURLE_OK,NULL);
} }