rem: res = get_ha1(&cred->digest.username.user, &domain, cred->digest.username.domain.len, _table, ha1);
add: res = get_ha1(&cred->digest.username, &domain, _table, ha1);
context: static inline int authorize(struct sip_msg* _m, str* _realm, char* _table, int _hftype){	char ha1[256];	int res;	struct hdr_field* h;	auth_body_t* cred;	auth_result_t ret;	str domain, rpid;	domain = *_realm;	ret = pre_auth_func(_m, &domain, _hftype, &h);		switch(ret) {	case ERROR:            return 0;	case NOT_AUTHORIZED:   return -1;	case DO_AUTHORIZATION: break;	case AUTHORIZED:       return 1;	}	cred = (auth_body_t*)h->parsed;	res = get_ha1(&cred->digest.username.user, &domain, cred->digest.username.domain.len, _table, ha1);        if (res < 0) {		     /* Error while accessing the database */		if (sl_reply(_m, (char*)500, MESSAGE_500) == -1) {			LOG(L_ERR, "authorize(): Error while sending 500 reply\n");		}		return 0;	} else if (res > 0) {		     /* Username not found in the database */		return -1;	}	     /* Recalculate response, it must be same to authorize sucessfully */        if (!check_response(&(cred->digest), &_m->first_line.u.request.method, ha1)) {		     /* Not supported yet */		rpid.s = 0;		rpid.len = 0;		ret = post_auth_func(_m, h, &rpid);		switch(ret) {		case ERROR:          return 0;		case NOT_AUTHORIZED: return -1;		case AUTHORIZED:     return 1;		default:             return -1; 		}	}	return -1;}