Curl_cookie_output() must check that there's a cookie struct present before
trying to address it!
This commit is contained in:
parent
b91103099a
commit
3f5227dfc7
@ -600,7 +600,7 @@ int Curl_cookie_output(struct CookieInfo *c, char *dumphere)
|
||||
FILE *out;
|
||||
bool use_stdout=FALSE;
|
||||
|
||||
if(0 == c->numcookies)
|
||||
if((NULL == c) || (0 == c->numcookies))
|
||||
/* If there are no known cookies, we don't write or even create any
|
||||
destination file */
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user