winbind: Fix no memory check in _wbint_PingDc().
authorAndreas Schneider <asn@samba.org>
Mon, 25 Feb 2013 13:55:48 +0000 (14:55 +0100)
committerDavid Disseldorp <ddiss@suse.de>
Tue, 5 Mar 2013 22:29:56 +0000 (23:29 +0100)
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/winbindd/winbindd_dual_srv.c

index 5344063f16142639b51efcf2e383dea6f9a5ac3b..744e251ba3de4eb3427ad4c8e9de743605811fbc 100644 (file)
@@ -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;
        }