]> git.meshlink.io Git - meshlink/commit
Always remove a node from the UDP tree before freeing it.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Sep 2009 14:35:28 +0000 (16:35 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Sep 2009 14:35:28 +0000 (16:35 +0200)
commit5a7fc58012da10b96073804994777255463d1b8d
treef20349905ed85fe156869c0b9f5f0d9f636f9f78
parentde029ce46056e02908b5390da9b71a6a59133f26
Always remove a node from the UDP tree before freeing it.

Valgrind caught tinc reading free'd memory during a purge(). This was caused by
first removing it from the main node tree, which will already call free_node(),
and then removing it from the UDP tree. This might cause spurious segmentation
faults.
src/node.c