Skip to content

Commit

Permalink
uac: reset UAC_REG_DISABLED flag (if need) after refresh
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e0ae1f)
  • Loading branch information
snen authored and miconda committed Jun 27, 2016
1 parent 877beb6 commit c95ab90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/uac/uac_reg.c
Expand Up @@ -600,7 +600,10 @@ int reg_ht_update_attrs(reg_uac_t *reg)
strncpy(ri->r->auth_proxy.s, reg->auth_proxy.s, reg->auth_proxy.len);
ri->r->auth_proxy.len = reg->auth_proxy.len;
ri->r->auth_proxy.s[reg->auth_proxy.len] = '\0';
if(reg->flags & UAC_REG_DISABLED) ri->r->flags |= UAC_REG_DISABLED;
if(reg->flags & UAC_REG_DISABLED)
ri->r->flags |= UAC_REG_DISABLED;
else
ri->r->flags &= ~UAC_REG_DISABLED;
lock_release(&_reg_htable->entries[slot].lock);
return 0;
}
Expand Down

0 comments on commit c95ab90

Please sign in to comment.