mirror of https://github.com/moparisthebest/curl
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;
|
FILE *out;
|
||||||
bool use_stdout=FALSE;
|
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
|
/* If there are no known cookies, we don't write or even create any
|
||||||
destination file */
|
destination file */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue