Skip to content

Missing socketpair initialization in client library #2326

@zanettea

Description

@zanettea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: libmosquittoStatus: CompletedNothing further to be done with this issue, it can be closed by the requestor or committer.

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions