From 78423c5899c3927fc038c0f8ceccce9245c5043d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg <daniel@haxx.se> Date: Fri, 10 Nov 2000 08:10:04 +0000 Subject: [PATCH] Venkataramana Mokkapati corrected a cookie parser bug --- lib/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cookie.c b/lib/cookie.c index a39ff88adb..f372cb544a 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 */ -- GitLab