From: Amitay Isaacs Date: Fri, 22 Apr 2016 03:53:50 +0000 (+1000) Subject: ctdb-client: Set control opcode in reply for one-way controls X-Git-Tag: talloc-2.1.7~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b970a5304c5a952dc5366d637b785cddacee2be7;p=thirdparty%2Fsamba.git ctdb-client: Set control opcode in reply for one-way controls Some controls are fire-and-forget (CTDB_CTRL_FLAG_NOREPLY). Since there is no reply received, the opcode in the ctdb_reply_control structure never gets set. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/client/client_control.c b/ctdb/client/client_control.c index b25ff40230e..5c47c9ac892 100644 --- a/ctdb/client/client_control.c +++ b/ctdb/client/client_control.c @@ -91,6 +91,7 @@ struct tevent_req *ctdb_client_control_send(TALLOC_CTX *mem_ctx, if (tevent_req_nomem(state->reply, req)) { return tevent_req_post(req, ev); } + state->reply->rdata.opcode = request->rdata.opcode; talloc_set_destructor(state, ctdb_client_control_state_destructor);