Missing socketpair initialization in client library #2326
Labels
Component: libmosquitto
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
Milestone
In mosquitto_reinitialise the socketpairR/W should be initialized as invalid as mosq->sock is, since, otherwise, if the function returns because the client id is missing or invalid, socketpairs still are valid handles (namely 0) and a further call to moquitto_destroy could try to close them causing unexpected behaviors in the hosting application.
The text was updated successfully, but these errors were encountered: