Skip to content
Snippets Groups Projects
Commit 78423c58 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Venkataramana Mokkapati corrected a cookie parser bug

parent 2bcb8abf
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment