de->invcheck_bv = INVCHECK_QUERY;
de->invcheck_bv = DEFAULT_INVCHECK_BV;
PUBLIC void cookie_domain_flag_set ARGS2(	char *, 	domainstr,	int, 	flag){    domain_entry *de = NULL;    domain_entry *de2 = NULL;    HTList *hl = NULL;    char **str = (char **)calloc(1, sizeof(domainstr));    char *dstr = NULL;    char *strsmall = NULL;    int isexisting = FALSE;    if (str == NULL)	outofmem(__FILE__, "cookie_set_invcheck");    /*     * Is this the first domain we're handling?  If so, initialize     * domain_list.     */    if (domain_list == NULL) {#ifdef LY_FIND_LEAKS	atexit(LYCookieJar_free);#endif	domain_list = HTList_new();	total_cookies = 0;    }    StrAllocCopy(dstr, domainstr);    *str = dstr;    while ((strsmall = LYstrsep(str, ",")) != 0) {	/*	 * Check the list of existing domains to see if this is a	 * re-setting of an already existing domains -- if so, just	 * change the behavior, if not, create a new domain entry.	 */	for (hl = domain_list; hl != NULL; hl = hl->next) {	    de2 = (domain_entry *)hl->object;	    if ((de2 != NULL && de2->domain != NULL) &&		!strcmp(strsmall, de2->domain)) {			isexisting = TRUE;			break;	    } else {		isexisting = FALSE;	    }	}	if(!isexisting) {	    de = (domain_entry *)calloc(1, sizeof(domain_entry));	    if (de == NULL)		    outofmem(__FILE__, "cookie_domain_flag_set");	    switch(flag) {		case (FLAG_ACCEPT_ALWAYS): de->bv = ACCEPT_ALWAYS;					   de->invcheck_bv = INVCHECK_QUERY;					   break;		case (FLAG_REJECT_ALWAYS): de->bv = REJECT_ALWAYS;					   de->invcheck_bv = INVCHECK_QUERY;					   break;		case (FLAG_QUERY_USER):    de->bv = QUERY_USER;					   de->invcheck_bv = INVCHECK_QUERY;					   break;		case (FLAG_FROM_FILE):     de->bv = FROM_FILE;					   de->invcheck_bv = INVCHECK_QUERY;					   break;		case (FLAG_INVCHECK_QUERY): de->invcheck_bv = INVCHECK_QUERY;					    de->bv = QUERY_USER;					    break;		case (FLAG_INVCHECK_STRICT): de->invcheck_bv = INVCHECK_STRICT;					     de->bv = QUERY_USER;					    break;		case (FLAG_INVCHECK_LOOSE): de->invcheck_bv = INVCHECK_LOOSE;					    de->bv = QUERY_USER;					    break;	    }	    StrAllocCopy(de->domain, strsmall);	    de->cookie_list = HTList_new();	    HTList_appendObject(domain_list, de);	} else {	    switch(flag) {		case (FLAG_ACCEPT_ALWAYS): de2->bv = ACCEPT_ALWAYS;					   break;		case (FLAG_REJECT_ALWAYS): de2->bv = REJECT_ALWAYS;					   break;		case (FLAG_QUERY_USER): de2->bv = QUERY_USER;					   break;		case (FLAG_FROM_FILE): de2->bv = FROM_FILE;					   break;		case (FLAG_INVCHECK_QUERY): de2->invcheck_bv = INVCHECK_QUERY;					   break;		case (FLAG_INVCHECK_STRICT): de2->invcheck_bv = INVCHECK_STRICT;					   break;		case (FLAG_INVCHECK_LOOSE): de2->invcheck_bv = INVCHECK_LOOSE;					   break;	    }	}    }    FREE(strsmall);    FREE(str);    FREE(dstr);}