From 69f22e17d7cfe305de757f613c18cb0a2c303756 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 25 Feb 2013 14:55:48 +0100 Subject: [PATCH] winbind: Fix no memory check in _wbint_PingDc(). Reviewed-by: David Disseldorp --- source3/winbindd/winbindd_dual_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 5344063f161..744e251ba3d 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; } -- 2.34.1