]> granicus.if.org Git - curl/commitdiff
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 a39ff88adb8b5f1530ba73070762c08c90d43f32..f372cb544a1225e2e55f0c0e44c2767d56db2490 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 */