Skip to content

Commit

Permalink
* FIX [broker] fix crash on hook_cb due to null msg
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Jan 10, 2024
1 parent f2d4534 commit db1bdb6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nanomq/apps/broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,6 @@ server_cb(void *arg)
log_error("WAIT nng aio result error: %d", rv);
}
smsg = work->msg; // reuse the same msg
work->msg = NULL;

cvector(mqtt_msg_info) msg_infos;
msg_infos = work->pipe_ct->msg_infos;
Expand Down

0 comments on commit db1bdb6

Please sign in to comment.