mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
Curl_getinfo() now checks for a NULL SessionHandle pointer
This commit is contained in:
parent
ebee2e323d
commit
61a6992559
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user