summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_samr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 20:47:59 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 20:47:59 +0000
commitc24f56e71c2d15ba0e41146abf4b0387a2461bac (patch)
tree9cfa6905626f6a1a5c8a07ddb39462691d939ff4 /source4/librpc/ndr/ndr_samr.c
parent8c90fcd32b37f211c32bcabe5e0c9af1a1ec5381 (diff)
downloadsamba-c24f56e71c2d15ba0e41146abf4b0387a2461bac.tar.gz
samba-c24f56e71c2d15ba0e41146abf4b0387a2461bac.tar.bz2
samba-c24f56e71c2d15ba0e41146abf4b0387a2461bac.zip
remember to samr_Close() policy handles after use
(This used to be commit 8b4e5c65e0e18657befbd5eba2d195c2751dcf7f)
Diffstat (limited to 'source4/librpc/ndr/ndr_samr.c')
-rw-r--r--source4/librpc/ndr/ndr_samr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_samr.c b/source4/librpc/ndr/ndr_samr.c
index 5ee496e103..fc42d56005 100644
--- a/source4/librpc/ndr/ndr_samr.c
+++ b/source4/librpc/ndr/ndr_samr.c
@@ -15,6 +15,7 @@ NTSTATUS ndr_push_samr_Connect(struct ndr_push *ndr, struct samr_Connect *r)
NTSTATUS ndr_push_samr_Close(struct ndr_push *ndr, struct samr_Close *r)
{
+ NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
return NT_STATUS_OK;
}
@@ -482,6 +483,7 @@ NTSTATUS ndr_pull_samr_Connect(struct ndr_pull *ndr, struct samr_Connect *r)
NTSTATUS ndr_pull_samr_Close(struct ndr_pull *ndr, struct samr_Close *r)
{
+ NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle));
NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
return NT_STATUS_OK;