Sfoglia il codice sorgente

uac: uac_reg: fix uac_reg_get_byuser()

The calculated hash was compared with uuid hash instead of user hash
Alex Hermann 14 anni fa
parent
commit
fe16198f0d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/uac/uac_reg.c

+ 1 - 1
modules/uac/uac_reg.c

@@ -670,7 +670,7 @@ reg_uac_t *reg_ht_get_byuser(str *user, str *domain)
 	it = _reg_htable->entries[slot].byuser;
 	while(it)
 	{
-		if((it->r->h_uuid==hash) && (it->r->l_username.len==user->len)
+		if((it->r->h_user==hash) && (it->r->l_username.len==user->len)
 				&& (strncmp(it->r->l_username.s, user->s, user->len)==0))
 		{
 			if(domain!=NULL && domain->s!=NULL)