From 8e0ae1f825c080a050c7e755eea67d2c56d6841f Mon Sep 17 00:00:00 2001 From: Dmitri Savolainen Date: Tue, 24 May 2016 12:51:06 +0300 Subject: [PATCH] uac: reset UAC_REG_DISABLED flag (if need) after refresh --- modules/uac/uac_reg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c index c1236aec46d..86b17e99cb5 100644 --- a/modules/uac/uac_reg.c +++ b/modules/uac/uac_reg.c @@ -607,7 +607,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; }