Skip to content

Commit ef7e291

Browse files
committed
* FIX [nmq_websocket] put valid msg into msg_vec
Signed-off-by: Jaylin <jaylin@emqx.io>
1 parent 0cd901d commit ef7e291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sp/transport/mqttws/nmq_websocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ wstran_pipe_recv_cb(void *arg)
323323
new = NULL;
324324
}
325325
}
326-
if (msg_vec != NULL) {
326+
if (new != NULL) {
327327
cvector_push_back(msg_vec, new);
328328
}
329329
index += pkt_len;

0 commit comments

Comments
 (0)