summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-27 15:41:49 +0200
committerGünther Deschner <gd@samba.org>2011-04-27 16:51:02 +0200
commitee0b0dd3a150dea35ef57d5867519a7df382137c (patch)
tree223618608051edd6d93354e96e8868fe3faa5a52 /source3/lib/netapi
parent1d46325af8541ea467c79cd86e65f93ce6a14ff4 (diff)
downloadsamba-ee0b0dd3a150dea35ef57d5867519a7df382137c.tar.gz
samba-ee0b0dd3a150dea35ef57d5867519a7df382137c.tar.bz2
samba-ee0b0dd3a150dea35ef57d5867519a7df382137c.zip
s3-netapi: Fix Coverity CID #2302: FORWARD_NULL
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/localgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c
index 51f4e1d745..49ba74ec17 100644
--- a/source3/lib/netapi/localgroup.c
+++ b/source3/lib/netapi/localgroup.c
@@ -1344,7 +1344,7 @@ static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx,
werr = WERR_OK;
done:
- if (is_valid_policy_hnd(&alias_handle)) {
+ if (b && is_valid_policy_hnd(&alias_handle)) {
dcerpc_samr_Close(b, talloc_tos(), &alias_handle, &result);
}