Hi,
while looking at the code, I have found a strange check in
Curl_cookie_clearsess:
if(!cookies->cookies || !cookies->cookies)
I think it should be
if(!cookies || !cookies->cookies)
to match Curl_cookie_clearall and other methods in cookie.c. Patch
against latest cvs version attached.
Best regards,
Julien
diff --git a/lib/cookie.c b/lib/cookie.c
index 8fc61e3..2ea8009 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;
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html