]> git.meshlink.io Git - meshlink/commit
Fix a potential segfault when closing a stopped meshlink handle.
authorGuus Sliepen <guus@meshlink.io>
Tue, 26 Jun 2018 12:23:04 +0000 (14:23 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 26 Jun 2018 12:23:04 +0000 (14:23 +0200)
commitf0d03b570cf72570573b76d74c2700ab60abda93
tree7c78c7231dcb1fc6426205fa8db1ef6e8b780450
parentc83c7948602acfb5fd0716ac6a47e0c9c9f9bfd8
Fix a potential segfault when closing a stopped meshlink handle.

If meshlink_stop() was called before meshlink_close(), the latter would
cause pthread_join() being called on a thread that was already joined.
src/meshlink.c