aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-10 08:10:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-10 08:10:04 +0000
commit78423c5899c3927fc038c0f8ceccce9245c5043d (patch)
tree44720f0d04e025d88581efa55b0075dd04577f57
parent2bcb8abf40bea659a1c8161668243ec72703e7a4 (diff)
Venkataramana Mokkapati corrected a cookie parser bug
-rw-r--r--lib/cookie.c2
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 */