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
This commit is contained in:
Daniel Kahn Gillmor 2015-02-18 04:11:31 -05:00 committed by Werner Koch
parent 0c3d7645df
commit 839727503d
1 changed files with 2 additions and 0 deletions

View File

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