1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Curl_cookie_add: only increase numcookies for new cookies

Count up numcookies in Curl_cookie_add() only when cookie is new one
This commit is contained in:
Yasuharu Yamada 2013-04-02 11:45:15 +02:00 committed by Daniel Stenberg
parent 43e045fc3e
commit eb25dd3be2

View File

@ -689,9 +689,9 @@ Curl_cookie_add(struct SessionHandle *data,
lastc->next = co; lastc->next = co;
else else
c->cookies = co; c->cookies = co;
c->numcookies++; /* one more cookie in the jar */
} }
c->numcookies++; /* one more cookie in the jar */
return co; return co;
} }