aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYasuharu Yamada <yasuharu.yamada@access-company.com>2013-04-02 11:45:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-04-02 11:45:15 +0200
commiteb25dd3be2369cdf348cb28b193999ea87b0f507 (patch)
tree7e767318bb8350d876d187d4323151c7c193030a /lib
parent43e045fc3e8430b2d2f3a1fc1354f3ecd54b09ab (diff)
Curl_cookie_add: only increase numcookies for new cookies
Count up numcookies in Curl_cookie_add() only when cookie is new one
Diffstat (limited to 'lib')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 18b91559c..c11197679 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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;
}