summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-25 14:55:48 +0100
committerDavid Disseldorp <ddiss@suse.de>2013-03-05 23:29:56 +0100
commit69f22e17d7cfe305de757f613c18cb0a2c303756 (patch)
tree2eaec90e59f031ba62863a70e925c0cf277fd273
parent157943fdfb47e6b72cb5596d6685152d0de328a7 (diff)
downloadsamba-69f22e17d7cfe305de757f613c18cb0a2c303756.tar.gz
samba-69f22e17d7cfe305de757f613c18cb0a2c303756.tar.bz2
samba-69f22e17d7cfe305de757f613c18cb0a2c303756.zip
winbind: Fix no memory check in _wbint_PingDc().
Reviewed-by: David Disseldorp <ddiss@samba.org>
-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;
}