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:
parent
43e045fc3e
commit
eb25dd3be2
@ -689,9 +689,9 @@ Curl_cookie_add(struct SessionHandle *data,
|
||||
lastc->next = co;
|
||||
else
|
||||
c->cookies = co;
|
||||
c->numcookies++; /* one more cookie in the jar */
|
||||
}
|
||||
|
||||
c->numcookies++; /* one more cookie in the jar */
|
||||
return co;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user