diff options
author | Günther Deschner <gd@samba.org> | 2009-09-16 10:26:28 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-16 10:30:01 +0200 |
commit | de43e39487d8724c06883827e3eb2dbe6b42fc99 (patch) | |
tree | 74d8d1dcf07a490b18300259b061288d41ac723b | |
parent | 828b9a48fde3839d88848d5e05e24c38ef6cfb7d (diff) | |
download | samba-de43e39487d8724c06883827e3eb2dbe6b42fc99.tar.gz samba-de43e39487d8724c06883827e3eb2dbe6b42fc99.tar.bz2 samba-de43e39487d8724c06883827e3eb2dbe6b42fc99.zip |
s3-netapi: Fix Coverity #669 FORWARD_NULL.
Guenthe
-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 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); } |