summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-16 10:26:28 +0200
committerGünther Deschner <gd@samba.org>2009-09-16 10:30:01 +0200
commitde43e39487d8724c06883827e3eb2dbe6b42fc99 (patch)
tree74d8d1dcf07a490b18300259b061288d41ac723b /source3/lib/netapi
parent828b9a48fde3839d88848d5e05e24c38ef6cfb7d (diff)
downloadsamba-de43e39487d8724c06883827e3eb2dbe6b42fc99.tar.gz
samba-de43e39487d8724c06883827e3eb2dbe6b42fc99.tar.bz2
samba-de43e39487d8724c06883827e3eb2dbe6b42fc99.zip
s3-netapi: Fix Coverity #669 FORWARD_NULL.
Guenthe
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index e23587d6aa..f56d433614 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -466,7 +466,7 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
&user_handle);
done:
- if (is_valid_policy_hnd(&user_handle)) {
+ if (is_valid_policy_hnd(&user_handle) && pipe_cli) {
rpccli_samr_Close(pipe_cli, ctx, &user_handle);
}