summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r--src/nxt_controller.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 0fca81b6..0b863f0c 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -335,6 +335,10 @@ nxt_controller_conf_send(nxt_task_t *task, nxt_conf_value_t *conf,
handler, handler,
router_port->pid, data);
+ if (nxt_slow_path(stream == 0)) {
+ return NXT_ERROR;
+ }
+
rc = nxt_port_socket_write(task, router_port, NXT_PORT_MSG_DATA_LAST, -1,
stream, controller_port->id, b);