Skip to content

Commit

Permalink
uac: uac_reg: fix uac_reg_get_byuser()
Browse files Browse the repository at this point in the history
The calculated hash was compared with uuid hash instead of user hash
  • Loading branch information
gaaf committed Jul 28, 2016
1 parent 6ed325e commit fe16198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/uac/uac_reg.c
Expand Up @@ -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)
Expand Down

0 comments on commit fe16198

Please sign in to comment.