summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2005-08-15 23:15:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:23 -0500
commit4ed7904b7e6994f8a1e13538529f827ff4c148c9 (patch)
tree43b248896221fb33ed65d47f9bb4b705a21cfb6e /source4
parent65ec408473972099f08d3ff0485e5f07244ad94c (diff)
downloadsamba-4ed7904b7e6994f8a1e13538529f827ff4c148c9.tar.gz
samba-4ed7904b7e6994f8a1e13538529f827ff4c148c9.tar.bz2
samba-4ed7904b7e6994f8a1e13538529f827ff4c148c9.zip
r9309: Incorrect null pointer check in return from talloc.
Found by coverity. (This used to be commit bafd3afbef9b8d3a8baa55d4b31cc62bfeeed459)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/domain.c b/source4/libnet/domain.c
index cc5d1570f9..94a2412261 100644
--- a/source4/libnet/domain.c
+++ b/source4/libnet/domain.c
@@ -177,7 +177,7 @@ struct composite_context *libnet_rpc_domain_open_send(struct dcerpc_pipe *p,
if (c == NULL) goto failure;
s = talloc_zero(c, struct domain_open_state);
- if (c == NULL) goto failure;
+ if (s == NULL) goto failure;
c->state = SMBCLI_REQUEST_SEND;
c->private = s;