diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-15 20:47:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-15 20:47:59 +0000 |
commit | c24f56e71c2d15ba0e41146abf4b0387a2461bac (patch) | |
tree | 9cfa6905626f6a1a5c8a07ddb39462691d939ff4 /source4/librpc | |
parent | 8c90fcd32b37f211c32bcabe5e0c9af1a1ec5381 (diff) | |
download | samba-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')
-rw-r--r-- | source4/librpc/idl/samr.idl | 4 | ||||
-rw-r--r-- | source4/librpc/ndr/ndr_samr.c | 2 | ||||
-rw-r--r-- | source4/librpc/ndr/ndr_samr.h | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl index f64f9603ee..ec782acd01 100644 --- a/source4/librpc/idl/samr.idl +++ b/source4/librpc/idl/samr.idl @@ -19,7 +19,9 @@ /******************/ /* Function: 0x01 */ - NTSTATUS samr_Close (); + NTSTATUS samr_Close ( + [in,out,ref] policy_handle *handle + ); /******************/ /* Function: 0x02 */ 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; diff --git a/source4/librpc/ndr/ndr_samr.h b/source4/librpc/ndr/ndr_samr.h index 1d29f56c65..28a7bc16cc 100644 --- a/source4/librpc/ndr/ndr_samr.h +++ b/source4/librpc/ndr/ndr_samr.h @@ -15,9 +15,11 @@ struct samr_Connect { struct samr_Close { struct { + struct policy_handle *handle; } in; struct { + struct policy_handle *handle; NTSTATUS result; } out; |