Explorar o código

modules_k/uac: fix reg_ht_get_byuser when domain is not used.

Alex Hermann %!s(int64=14) %!d(string=hai) anos
pai
achega
a28c9c753f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules_k/uac/uac_reg.c

+ 2 - 0
modules_k/uac/uac_reg.c

@@ -381,6 +381,8 @@ reg_uac_t *reg_ht_get_byuser(str *user, str *domain)
 				{
 					return it->r;
 				}
+			} else {
+				return it->r;
 			}
 		}
 		it = it->next;