Fix a possible crash when sending the HUP signal.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Oct 2009 20:14:47 +0000 (22:14 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Oct 2009 20:14:47 +0000 (22:14 +0200)
commit35af4051c3749cd2c2137a7eb57171a1fbb12af7
treea91c179355cc21e65c582e8bff4a279977f5f9ff
parent8c267d3d558ac97a4ce7381a37abb6cc4b46b133
Fix a possible crash when sending the HUP signal.

When the HUP signal is sent while some outgoing connections have not been made
yet, or are being retried, a NULL pointer could be dereferenced resulting in
tinc crashing. We fix this by more careful handling of outgoing_ts, and by
deleting all connections that have not been fully activated yet at the HUP
signal is received.
src/event.h
src/net.c
src/net.h
src/net_setup.c
src/net_socket.c