aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-12-19 19:20:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-12-19 19:20:26 +0000
commit240fa29e94c63f4b86ac2715b706277415c863b4 (patch)
treefcfb36838f8c0283ee99bd02f29be2176d260b63
parent010fe5acd5cf9f56e83507c40c8693f843e30a0e (diff)
fixed a precaution check in the cookie code, pointed out by Julien Chaffraix
-rw-r--r--RELEASE-NOTES2
-rw-r--r--lib/cookie.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 467f22a09..25ca3a116 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -48,6 +48,6 @@ advice from friends like these:
Marco Maggi, Camille Moncelier, Claes Jakobsson, Kevin Baughman,
Marc Kleine-Budde, Jad Chamcham, Bjorn Augustsson, David Byron,
Markus Koetter, Chad Monroe, Martin Storsjo, Siegfried Gyuricsko,
- Jon Nelson,
+ Jon Nelson, Julien Chaffraix
Thanks! (and sorry if I forgot to mention someone)
diff --git a/lib/cookie.c b/lib/cookie.c
index b76394cfa..7be8fc3c5 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -909,7 +909,7 @@ void Curl_cookie_clearsess(struct CookieInfo *cookies)
{
struct Cookie *first, *curr, *next, *prev = NULL;
- if(!cookies->cookies || !cookies->cookies)
+ if(!cookies || !cookies->cookies)
return;
first = curr = prev = cookies->cookies;