mirror of https://github.com/moparisthebest/curl
fixed a precaution check in the cookie code, pointed out by Julien Chaffraix
This commit is contained in:
parent
010fe5acd5
commit
240fa29e94
|
@ -48,6 +48,6 @@ advice from friends like these:
|
||||||
Marco Maggi, Camille Moncelier, Claes Jakobsson, Kevin Baughman,
|
Marco Maggi, Camille Moncelier, Claes Jakobsson, Kevin Baughman,
|
||||||
Marc Kleine-Budde, Jad Chamcham, Bjorn Augustsson, David Byron,
|
Marc Kleine-Budde, Jad Chamcham, Bjorn Augustsson, David Byron,
|
||||||
Markus Koetter, Chad Monroe, Martin Storsjo, Siegfried Gyuricsko,
|
Markus Koetter, Chad Monroe, Martin Storsjo, Siegfried Gyuricsko,
|
||||||
Jon Nelson,
|
Jon Nelson, Julien Chaffraix
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|
|
@ -909,7 +909,7 @@ void Curl_cookie_clearsess(struct CookieInfo *cookies)
|
||||||
{
|
{
|
||||||
struct Cookie *first, *curr, *next, *prev = NULL;
|
struct Cookie *first, *curr, *next, *prev = NULL;
|
||||||
|
|
||||||
if(!cookies->cookies || !cookies->cookies)
|
if(!cookies || !cookies->cookies)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
first = curr = prev = cookies->cookies;
|
first = curr = prev = cookies->cookies;
|
||||||
|
|
Loading…
Reference in New Issue