gsliepen / tinc

a VPN daemon
http://tinc-vpn.org/
Other
1.87k stars 280 forks source link

Fixes for a couple of small issues found by tests #403

Closed hg closed 2 years ago

hg commented 2 years ago

The first commit prevents going over listen_socket on tincd deinitialization.

The easiest way to trigger this is to start tincd with LISTEN_FDS=9 (see additions to the test suite).

The second is a fix for what looks like another false-positive (although I guess it's possible in a multi-threaded program?). It happens with clang-tidy 14.