]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_getinfo() now checks for a NULL SessionHandle pointer
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 Dec 2006 13:44:10 +0000 (13:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Dec 2006 13:44:10 +0000 (13:44 +0000)
lib/getinfo.c

index 8e44b53ff2c8934bb9cfa6b7d316596cef0f9009..5cf3bcacddf85766f82391d5c3cb79dc4a76eda3 100644 (file)
@@ -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) {