Don't call terminate_connection(myself->connection).
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Apr 2016 14:23:31 +0000 (16:23 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Apr 2016 14:25:13 +0000 (16:25 +0200)
commitf934417aa658367587dadc81bd5c466baef407ef
tree949534f69f72675778a301b15d846797556d9e28
parent2213ecaea550ce81c595464ad4347414bcb5d786
Don't call terminate_connection(myself->connection).

It doesn't do anything except give a confusing error message that we are
closing the connection to ourself. Replace it with connection_del().
This also fixes a double free.
src/net_setup.c