Lines Matching refs:clist
444 struct Cookie *clist; in Curl_cookie_add() local
967 clist = c->cookies[myhash]; in Curl_cookie_add()
969 while(clist) { in Curl_cookie_add()
970 if(strcasecompare(clist->name, co->name)) { in Curl_cookie_add()
973 if(clist->domain && co->domain) { in Curl_cookie_add()
974 if(strcasecompare(clist->domain, co->domain) && in Curl_cookie_add()
975 (clist->tailmatch == co->tailmatch)) in Curl_cookie_add()
979 else if(!clist->domain && !co->domain) in Curl_cookie_add()
985 if(clist->spath && co->spath) { in Curl_cookie_add()
986 if(clist->secure && !co->secure && !secure) { in Curl_cookie_add()
997 sep = strchr(clist->spath + 1, '/'); in Curl_cookie_add()
1000 cllen = sep - clist->spath; in Curl_cookie_add()
1002 cllen = strlen(clist->spath); in Curl_cookie_add()
1004 if(strncasecompare(clist->spath, co->spath, cllen)) { in Curl_cookie_add()
1009 else if(strcasecompare(clist->spath, co->spath)) in Curl_cookie_add()
1014 else if(!clist->spath && !co->spath) in Curl_cookie_add()
1021 if(replace_old && !co->livecookie && clist->livecookie) { in Curl_cookie_add()
1033 co->next = clist->next; /* get the next-pointer first */ in Curl_cookie_add()
1036 co->creationtime = clist->creationtime; in Curl_cookie_add()
1039 free(clist->name); in Curl_cookie_add()
1040 free(clist->value); in Curl_cookie_add()
1041 free(clist->domain); in Curl_cookie_add()
1042 free(clist->path); in Curl_cookie_add()
1043 free(clist->spath); in Curl_cookie_add()
1044 free(clist->expirestr); in Curl_cookie_add()
1045 free(clist->version); in Curl_cookie_add()
1046 free(clist->maxage); in Curl_cookie_add()
1048 *clist = *co; /* then store all the new data */ in Curl_cookie_add()
1051 co = clist; /* point to the previous struct instead */ in Curl_cookie_add()
1056 lastc = clist; in Curl_cookie_add()
1057 clist = clist->next; in Curl_cookie_add()
1058 } while(clist); in Curl_cookie_add()
1062 lastc = clist; in Curl_cookie_add()
1063 clist = clist->next; in Curl_cookie_add()