Venkataramana Mokkapati corrected a cookie parser bug
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 08:10:04 +0000 (08:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 08:10:04 +0000 (08:10 +0000)
lib/cookie.c

index a39ff88..f372cb5 100644 (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 */