Curl_cookie_output() must check that there's a cookie struct present before

trying to address it!
This commit is contained in:
Daniel Stenberg 2001-09-10 07:43:08 +00:00
parent b91103099a
commit 3f5227dfc7
1 changed files with 1 additions and 1 deletions

View File

@ -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;