diff options
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 962b6e6d1b..ab1218c560 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -627,7 +627,7 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain, DS_RETURN_DNS_NAME, &domain_info, &werr); - if (W_ERROR_IS_OK(werr)) { + if (NT_STATUS_IS_OK(result) && W_ERROR_IS_OK(werr)) { tmp = talloc_strdup( mem_ctx, domain_info->dc_unc); if (tmp == NULL) { |