소스 검색

Merge pull request #634 from snen/uac_flag_update_fix

uac: reset UAC_REG_DISABLED flag (if need) after refresh
Daniel-Constantin Mierla 9 년 전
부모
커밋
bd09692fbd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      modules/uac/uac_reg.c

+ 4 - 1
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;
 		}