mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s4:libnet: let libnet_rpc_usermod() take tevent_context/dcerpc_binding_handle
This avoids usage/dereferencing 'struct dcerpc_pipe'. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
committed by
Günther Deschner
parent
f33a558750
commit
d9573ae076
@ -912,11 +912,11 @@ NTSTATUS libnet_rpc_usermod_recv(struct composite_context *c, TALLOC_CTX *mem_ct
|
||||
* @return nt status code of execution
|
||||
*/
|
||||
|
||||
NTSTATUS libnet_rpc_usermod(struct dcerpc_pipe *p,
|
||||
NTSTATUS libnet_rpc_usermod(struct tevent_context *ev,
|
||||
struct dcerpc_binding_handle *b,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct libnet_rpc_usermod *io)
|
||||
{
|
||||
struct composite_context *c = libnet_rpc_usermod_send(mem_ctx, p->conn->event_ctx,
|
||||
p->binding_handle, io, NULL);
|
||||
struct composite_context *c = libnet_rpc_usermod_send(mem_ctx, ev, b, io, NULL);
|
||||
return libnet_rpc_usermod_recv(c, mem_ctx, io);
|
||||
}
|
||||
|
Reference in New Issue
Block a user