Commit 3f5227df authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

trying to address it!
parent b9110309
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;