From 4ed7904b7e6994f8a1e13538529f827ff4c148c9 Mon Sep 17 00:00:00 2001 From: Steve French Date: Mon, 15 Aug 2005 23:15:59 +0000 Subject: [PATCH] r9309: Incorrect null pointer check in return from talloc. Found by coverity. (This used to be commit bafd3afbef9b8d3a8baa55d4b31cc62bfeeed459) --- source4/libnet/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libnet/domain.c b/source4/libnet/domain.c index cc5d1570f966..94a241226114 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; -- 2.34.1