Skip to content

Commit

Permalink
* FIX [transport/mqtt] fix UAF in transport, according to upstream
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <[email protected]>
  • Loading branch information
JaylinYu committed Jul 29, 2024
1 parent c36d5f7 commit efa9c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mqtt/transport/tcp/mqtt_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ mqtt_tcptran_pipe_nego_cb(void *arg)
ep->useraio = NULL;
nni_aio_finish_error(uaio, rv);
}
nni_list_remove(&ep->negopipes, p);
nni_mtx_unlock(&ep->mtx);
mqtt_tcptran_pipe_reap(p);
}
Expand Down
1 change: 1 addition & 0 deletions src/mqtt/transport/tls/mqtt_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ mqtts_tcptran_pipe_nego_cb(void *arg)
ep->useraio = NULL;
nni_aio_finish_error(uaio, rv);
}
nni_list_remove(&ep->negopipes, p);
nni_mtx_unlock(&ep->mtx);
mqtts_tcptran_pipe_reap(p);
}
Expand Down

0 comments on commit efa9c1d

Please sign in to comment.