diff options
author | Günther Deschner <gd@samba.org> | 2009-09-16 10:24:55 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-16 10:29:54 +0200 |
commit | 828b9a48fde3839d88848d5e05e24c38ef6cfb7d (patch) | |
tree | 7c1c39016135cc821c03448ec21f54c83acb0833 /source3/lib/netapi | |
parent | 537ac20a92c70a4bebcb7662c7bbcb1daf745fb7 (diff) | |
download | samba-828b9a48fde3839d88848d5e05e24c38ef6cfb7d.tar.gz samba-828b9a48fde3839d88848d5e05e24c38ef6cfb7d.tar.bz2 samba-828b9a48fde3839d88848d5e05e24c38ef6cfb7d.zip |
s3-netapi: Fix Coverity #670: FORWARD_NULL.
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index 9fa3ddd9a8..e23587d6aa 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -1864,7 +1864,7 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, werr = WERR_OK; 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); } |