rem: if (!strncasecmp(user.s, state.cred.username.s, (user.len < state.cred.username.len) ? (state.cred.username.len) : (user.len))) { DBG("check_to(): auth id and To username are equal\n"); return 1; } else { DBG("check_to(): auth id and To username differ\n"); return -1;
add: if (user.len == state.cred.username.len) { if (!strncasecmp(user.s, state.cred.username.s, user.len)) { DBG("check_to(): auth id and To username are equal\n"); return 1; }
context: int check_to(struct sip_msg* _msg, char* _str1, char* _str2){	str user;	if (!_msg->to) {		LOG(L_ERR, "check_to(): To HF not found\n");		return -1;	}	user.s = _msg->to->body.s;	user.len = _msg->to->body.len;	get_username(&user);	if (!user.len) return -1;	/* FIXME !! */	if (!strncasecmp(user.s, state.cred.username.s,			 (user.len < state.cred.username.len) ? (state.cred.username.len) : (user.len))) {		DBG("check_to(): auth id and To username are equal\n");		return 1;	} else {		DBG("check_to(): auth id and To username differ\n");		return -1;	}}