]> granicus.if.org Git - curl/commitdiff
reset the numcookies counter too (I missed it in the previous commit)
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Jul 2005 21:53:09 +0000 (21:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Jul 2005 21:53:09 +0000 (21:53 +0000)
lib/url.c

index 2cef9e471130826f9d9754175ef19f505be40688..bb8aa18197848056b5df925262156a264642c1db 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -788,6 +788,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
         /* clear all cookies */
         Curl_cookie_freelist(data->cookies->cookies);
         data->cookies->cookies = NULL;
+        data->cookies->numcookies = 0;
       }
       break;
     }