From 61a6992559ecf6719a077399eaf6050862bbfc6f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 22 Dec 2006 13:44:10 +0000 Subject: [PATCH] Curl_getinfo() now checks for a NULL SessionHandle pointer --- lib/getinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/getinfo.c b/lib/getinfo.c index 8e44b53ff2..5cf3bcacdd 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) {