diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 8e44b53ff..5cf3bcacd 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -77,6 +77,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) struct curl_slist **param_slistp=NULL; char buf; + if(!data) + return CURLE_BAD_FUNCTION_ARGUMENT; + va_start(arg, info); switch(info&CURLINFO_TYPEMASK) { |