Skip to content

Commit

Permalink
* FIX [nmq_mqtt] fix u-a-f #1719 6
Browse files Browse the repository at this point in the history
Signed-off-by: wayne <yukang.wei@emqx.io>
  • Loading branch information
StargazerWayne committed Mar 26, 2024
1 parent 57549de commit 9c4ff5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sp/protocol/mqtt/nmq_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,6 @@ nano_pipe_init(void *arg, nni_pipe *pipe, void *s)
nni_aio_init(&p->aio_timer, nano_pipe_timer_cb, p);
nni_aio_init(&p->aio_recv, nano_pipe_recv_cb, p);

p->conn_param = nni_pipe_get_conn_param(pipe);
conn_param_free(p->conn_param);
p->id = nni_pipe_id(pipe);
p->rid = 1;
p->pipe = pipe;
Expand All @@ -618,6 +616,8 @@ nano_pipe_init(void *arg, nni_pipe *pipe, void *s)
p->event = true;
p->tree = sock->db;
p->keepalive = p->conn_param->keepalive_mqtt;
p->conn_param = nni_pipe_get_conn_param(pipe);
conn_param_free(p->conn_param);

return (0);
}
Expand Down

0 comments on commit 9c4ff5b

Please sign in to comment.