Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
[metze/samba/wip.git] / source3 / winbindd / winbindd_cm.c
index 4188b5e6edba62f61ec5135d89b06e2a8c783788..cf1eb8bd0e93a114e6c062c6ee15cb4313b7e274 100644 (file)
@@ -1161,7 +1161,7 @@ static bool dcip_to_name(TALLOC_CTX *mem_ctx,
        }
 #endif
 
-       status = nbt_getdc(winbind_messaging_context(), pss, domain->name,
+       status = nbt_getdc(winbind_messaging_context(), 10, pss, domain->name,
                           &domain->sid, nt_version, mem_ctx, &nt_version,
                           &dc_name, NULL);
        if (NT_STATUS_IS_OK(status)) {