From bd1eb7b502e3c9b3c3854fafd6ad360eca11c50a Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 25 Feb 2019 18:09:37 +0300 Subject: RPC error message size fixed. In case of RPC error, special error message passed to handler. Field 'size' expected to be 0 in this case because in contains fake empty buffer. --- src/nxt_port_rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxt_port_rpc.c b/src/nxt_port_rpc.c index 401707f0..77e8af45 100644 --- a/src/nxt_port_rpc.c +++ b/src/nxt_port_rpc.c @@ -489,7 +489,7 @@ nxt_port_rpc_close(nxt_task_t *task, nxt_port_t *port) msg.port_msg.nf = 0; msg.port_msg.mf = 0; msg.port_msg.tracking = 0; - msg.size = sizeof(msg.port_msg); + msg.size = 0; msg.cancelled = 0; msg.u.data = NULL; -- cgit