summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto_websocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_h1proto_websocket.c')
-rw-r--r--src/nxt_h1proto_websocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_h1proto_websocket.c b/src/nxt_h1proto_websocket.c
index cd67a8a6..c9ff899c 100644
--- a/src/nxt_h1proto_websocket.c
+++ b/src/nxt_h1proto_websocket.c
@@ -697,6 +697,7 @@ nxt_h1p_conn_ws_pong(nxt_task_t *task, void *obj, void *data)
for (i = 0; i < payload_len; i++) {
while (nxt_buf_mem_used_size(&b->mem) == 0) {
next = b->next;
+ b->next = NULL;
nxt_work_queue_add(&task->thread->engine->fast_work_queue,
b->completion_handler, task, b, b->parent);