diff options
author | Günther Deschner <gd@samba.org> | 2009-09-16 10:27:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-16 10:30:08 +0200 |
commit | a0d8698f6547a020ee0fba59704d2ebeb8c27763 (patch) | |
tree | 8bcc5127029abb2742129c2472f07fa8b3ce7eec | |
parent | de43e39487d8724c06883827e3eb2dbe6b42fc99 (diff) | |
download | samba-a0d8698f6547a020ee0fba59704d2ebeb8c27763.tar.gz samba-a0d8698f6547a020ee0fba59704d2ebeb8c27763.tar.bz2 samba-a0d8698f6547a020ee0fba59704d2ebeb8c27763.zip |
s3-netapi: Fix Coverity #668: FORWARD_NULL.
Guenther
-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 f56d433614..f95750fae7 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -1696,7 +1696,7 @@ WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx, } 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); } |