mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:17:59 +03:00
Venkataramana Mokkapati corrected a cookie parser bug
This commit is contained in:
parent
2bcb8abf40
commit
78423c5899
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ struct Cookie *cookie_getlist(struct CookieInfo *c,
|
|||
/* now check if the domain is correct */
|
||||
domlen=co->domain?strlen(co->domain):0;
|
||||
if(!co->domain ||
|
||||
((domlen<hostlen) &&
|
||||
((domlen<=hostlen) &&
|
||||
strequal(host+(hostlen-domlen), co->domain)) ) {
|
||||
/* the right part of the host matches the domain stuff in the
|
||||
cookie data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue