projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43e045f
)
Curl_cookie_add: only increase numcookies for new cookies
author
Yasuharu Yamada
<yasuharu.yamada@access-company.com>
Tue, 2 Apr 2013 09:45:15 +0000
(11:45 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 2 Apr 2013 09:45:15 +0000
(11:45 +0200)
Count up numcookies in Curl_cookie_add() only when cookie is new one
lib/cookie.c
patch
|
blob
|
history
diff --git
a/lib/cookie.c
b/lib/cookie.c
index 18b91559ca07f505998f8873f0b855a8b2a422bf..c11197679b44ffbe31b6324373c9ac207c1b08df 100644
(file)
--- 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;
}