Curl_getinfo() now checks for a NULL SessionHandle pointer

This commit is contained in:
Daniel Stenberg 2006-12-22 13:44:10 +00:00
parent ebee2e323d
commit 61a6992559

View 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) {