From a98a9c39a2dedb50a81f0b9709fa437f5a0fd880 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 17 Apr 2009 11:48:31 +0200 Subject: s4:librpc/rpc: pass async as argument to dcerpc_ndr_request_send() The caller should decide if async is desired it should be harcoded per call. metze --- source4/librpc/rpc/dcerpc.c | 16 ++++++++-------- source4/librpc/rpc/dcerpc.h | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 6ebbc79fcf..c8add30ef8 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -1348,11 +1348,12 @@ static NTSTATUS dcerpc_ndr_validate_out(struct dcerpc_connection *c, send a rpc request given a dcerpc_call structure */ struct rpc_request *dcerpc_ndr_request_send(struct dcerpc_pipe *p, - const struct GUID *object, - const struct ndr_interface_table *table, - uint32_t opnum, - TALLOC_CTX *mem_ctx, - void *r) + const struct GUID *object, + const struct ndr_interface_table *table, + uint32_t opnum, + bool async, + TALLOC_CTX *mem_ctx, + void *r) { const struct ndr_interface_call *call; struct ndr_push *push; @@ -1401,8 +1402,7 @@ struct rpc_request *dcerpc_ndr_request_send(struct dcerpc_pipe *p, dump_data(10, request.data, request.length); /* make the actual dcerpc request */ - req = dcerpc_request_send(p, object, opnum, table->calls[opnum].async, - &request); + req = dcerpc_request_send(p, object, opnum, async, &request); if (req != NULL) { req->ndr.table = table; @@ -1519,7 +1519,7 @@ _PUBLIC_ NTSTATUS dcerpc_ndr_request(struct dcerpc_pipe *p, { struct rpc_request *req; - req = dcerpc_ndr_request_send(p, object, table, opnum, mem_ctx, r); + req = dcerpc_ndr_request_send(p, object, table, opnum, false, mem_ctx, r); if (req == NULL) { return NT_STATUS_NO_MEMORY; } diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h index 5b82a0ac7b..7f573f0e84 100644 --- a/source4/librpc/rpc/dcerpc.h +++ b/source4/librpc/rpc/dcerpc.h @@ -256,6 +256,7 @@ struct rpc_request *dcerpc_ndr_request_send(struct dcerpc_pipe *p, const struct GUID *object, const struct ndr_interface_table *table, uint32_t opnum, + bool async, TALLOC_CTX *mem_ctx, void *r); const char *dcerpc_server_name(struct dcerpc_pipe *p); -- cgit