git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
157943f
)
winbind: Fix no memory check in _wbint_PingDc().
author
Andreas Schneider
<asn@samba.org>
Mon, 25 Feb 2013 13:55:48 +0000
(14:55 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_dual_srv.c
b/source3/winbindd/winbindd_dual_srv.c
index 5344063f16142639b51efcf2e383dea6f9a5ac3b..744e251ba3de4eb3427ad4c8e9de743605811fbc 100644
(file)
--- 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;
}