summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/user.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-16 03:57:09 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-16 03:57:09 -0700
commit1b3f5cee2e72b8eb3df4836c237255ac7ad57136 (patch)
tree56ab0d2ebb34b9c747c1c2606fc2d617f4b77671 /source3/lib/netapi/user.c
parent79082f400e3d0c21b53d54bfb42954c2396110b9 (diff)
parent033ced60ac734161686bd3da685f2d7b056e17c8 (diff)
downloadsamba-1b3f5cee2e72b8eb3df4836c237255ac7ad57136.tar.gz
samba-1b3f5cee2e72b8eb3df4836c237255ac7ad57136.tar.bz2
samba-1b3f5cee2e72b8eb3df4836c237255ac7ad57136.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/lib/netapi/user.c')
-rw-r--r--source3/lib/netapi/user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 9fa3ddd9a8..f95750fae7 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);
}
@@ -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);
}
@@ -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);
}