summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_dual_srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/winbindd_dual_srv.c')
-rw-r--r--source3/winbindd/winbindd_dual_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c
index 5344063f16..744e251ba3 100644
--- a/source3/winbindd/winbindd_dual_srv.c
+++ b/source3/winbindd/winbindd_dual_srv.c
@@ -698,7 +698,7 @@ NTSTATUS _wbint_PingDc(struct pipes_struct *p, struct wbint_PingDc *r)
fstr_sprintf(logon_server, "\\\\%s", domain->dcname);
*r->out.dcname = talloc_strdup(p->mem_ctx, domain->dcname);
- if (r->out.dcname == NULL) {
+ if (*r->out.dcname == NULL) {
DEBUG(2, ("Could not allocate memory\n"));
return NT_STATUS_NO_MEMORY;
}