Venkataramana Mokkapati corrected a cookie parser bug

This commit is contained in:
Daniel Stenberg 2000-11-10 08:10:04 +00:00
parent 2bcb8abf40
commit 78423c5899

View File

@ -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 */