mirror of
https://github.com/curl/curl.git
synced 2026-04-25 13:22:19 +03:00
Curl_getinfo() now checks for a NULL SessionHandle pointer
This commit is contained in:
parent
ebee2e323d
commit
61a6992559
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue