aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-10 07:43:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-10 07:43:08 +0000
commit3f5227dfc7389f008137a6f4703af8022ab862f3 (patch)
treeec35dc5669568a2bd06a752ccf4f2653772cfb24
parentb91103099a30362dbd4afef3900b675d3425d3b4 (diff)
Curl_cookie_output() must check that there's a cookie struct present before
trying to address it!
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index f17f39c83..f859b0bee 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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;