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:
parent
157943fdfb
commit
69f22e17d7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user