]> git.meshlink.io Git - meshlink/commit
Don't call terminate_connection() from meshlink_blacklist().
authorGuus Sliepen <guus@meshlink.io>
Mon, 28 Oct 2019 20:14:17 +0000 (21:14 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 28 Oct 2019 20:14:17 +0000 (21:14 +0100)
commit11662ed5b5c53be400f4de08ee715e461d491ec1
tree507fdeae4febc462c4226c08bd6d4fd33bed8f18
parent5678b294c5bbb61b983a7a269bc85fd6ea6590ff
Don't call terminate_connection() from meshlink_blacklist().

If meshlink_blacklist() is called from a callback function, this can result
in a use-after-free bug. Instead, shut down the socket, so the event loop
will take care of it.
src/meshlink.c