diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-10 08:10:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-10 08:10:04 +0000 |
commit | 78423c5899c3927fc038c0f8ceccce9245c5043d (patch) | |
tree | 44720f0d04e025d88581efa55b0075dd04577f57 | |
parent | 2bcb8abf40bea659a1c8161668243ec72703e7a4 (diff) |
Venkataramana Mokkapati corrected a cookie parser bug
-rw-r--r-- | lib/cookie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index a39ff88ad..f372cb544 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -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 */ |