diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-11-08 12:20:44 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-01-12 03:13:35 +0100 |
commit | 237ae037f4e5683213f3ef0d02ac3d411ca1889f (patch) | |
tree | 3596dcec0dab0c377507c0fa30413c8a1c0070e7 /source4/rpc_server/dcerpc_server.h | |
parent | 86661abacf8ba0dea7a7b050facb2dfe8ea7bf79 (diff) | |
download | samba-237ae037f4e5683213f3ef0d02ac3d411ca1889f.tar.gz |
s4:rpc_server: only use the new dcesrv_handle_{create,lookup}() api
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/rpc_server/dcerpc_server.h')
-rw-r--r-- | source4/rpc_server/dcerpc_server.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/rpc_server/dcerpc_server.h b/source4/rpc_server/dcerpc_server.h index 8cf7ed8cf04..ba14ab8f824 100644 --- a/source4/rpc_server/dcerpc_server.h +++ b/source4/rpc_server/dcerpc_server.h @@ -161,20 +161,20 @@ struct dcesrv_call_state { * created and fetch using the dcesrv_handle_* functions. * * Use -* dcesrv_handle_new(struct dcesrv_connection \*, uint8 handle_type) +* dcesrv_handle_create(struct dcesrv_call_state \*, uint8 handle_type) * to obtain a new handle of the specified type. Handle types are * unique within each pipe. * * The handle can later be fetched again using: * -* struct dcesrv_handle *dcesrv_handle_fetch( -* struct dcesrv_connection *dce_conn, +* struct dcesrv_handle *dcesrv_handle_lookup( +* struct dcesrv_call_state *dce_call, * struct policy_handle *p, * uint8 handle_type) * * and destroyed by: * -* dcesrv_handle_destroy(struct dcesrv_handle *). +* TALLOC_FREE(struct dcesrv_handle *). * * User data should be stored in the 'data' member of the dcesrv_handle * struct. @@ -481,7 +481,7 @@ NTSTATUS dcesrv_transport_session_key(struct dcesrv_call_state *call, invalid handle or retval if the handle is of the wrong type */ #define DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, retval) do { \ - (h) = dcesrv_handle_fetch(dce_call->context, (inhandle), DCESRV_HANDLE_ANY); \ + (h) = dcesrv_handle_lookup(dce_call, (inhandle), DCESRV_HANDLE_ANY); \ DCESRV_CHECK_HANDLE(h); \ if ((t) != DCESRV_HANDLE_ANY && (h)->wire_handle.handle_type != (t)) { \ return retval; \ @@ -491,7 +491,7 @@ NTSTATUS dcesrv_transport_session_key(struct dcesrv_call_state *call, /* this checks for a valid policy handle and gives a dcerpc fault if its the wrong type of handle */ #define DCESRV_PULL_HANDLE_FAULT(h, inhandle, t) do { \ - (h) = dcesrv_handle_fetch(dce_call->context, (inhandle), t); \ + (h) = dcesrv_handle_lookup(dce_call, (inhandle), t); \ DCESRV_CHECK_HANDLE(h); \ } while (0) |