commit | 78423c5899c3927fc038c0f8ceccce9245c5043d | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Fri Nov 10 08:10:04 2000 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Fri Nov 10 08:10:04 2000 +0000 |
tree | 44720f0d04e025d88581efa55b0075dd04577f57 | |
parent | 2bcb8abf40bea659a1c8161668243ec72703e7a4 [diff] [blame] |
Venkataramana Mokkapati corrected a cookie parser bug
diff --git a/lib/cookie.c b/lib/cookie.c index a39ff88..f372cb5 100644 --- a/lib/cookie.c +++ b/lib/cookie.c
@@ -409,7 +409,7 @@ /* 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 */