1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

winbind: Fix no memory check in _wbint_PingDc().

Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Andreas Schneider 2013-02-25 14:55:48 +01:00 committed by David Disseldorp
parent 157943fdfb
commit 69f22e17d7

View 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;
}