From f2592b6843d9b377121c2c9c6f0bc58ceaf08f52 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Thu, 9 Jan 2014 10:15:31 +0100 Subject: [PATCH] s3:rpc_server: minor refactoring of process_request_pdu() Signed-off-by: Gregor Beck Reviewed-by: Stefan Metzmacher Reviewed-by: Guenther Deschner (cherry picked from commit b5f30205931a4b9d0b3b257d5855869e606f8b63) --- source3/rpc_server/srv_pipe.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 894f12c2e90..a5b74edf07b 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1561,24 +1561,19 @@ static bool process_request_pdu(struct pipes_struct *p, struct ncacn_packet *pkt } } - if (pkt->pfc_flags & DCERPC_PFC_FLAG_LAST) { - bool ret = False; - /* - * Ok - we finally have a complete RPC stream. - * Call the rpc command to process it. - */ - - /* - * Process the complete data stream here. - */ - if (pipe_init_outgoing_data(p)) { - ret = api_pipe_request(p, pkt); - } + if (!(pkt->pfc_flags & DCERPC_PFC_FLAG_LAST)) { + return true; + } - return ret; + /* + * Ok - we finally have a complete RPC stream. + * Call the rpc command to process it. + */ + if (!pipe_init_outgoing_data(p)) { + return false; } - return True; + return api_pipe_request(p, pkt); } /**************************************************************************** -- 2.11.4.GIT