X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_setup.c;h=30e6f848a68c4ea4828fc02828267fade412386d;hp=0c074719cad4fd7566ddbe8620302bbd5ccd79b4;hb=f934417aa658367587dadc81bd5c466baef407ef;hpb=c544e5e8fe22250b230a46f0340483db5403a6c1 diff --git a/src/net_setup.c b/src/net_setup.c index 0c074719..30e6f848 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -591,7 +591,7 @@ bool setup_myself_reloadable(void) { subnet_add(NULL, s); } -#if !defined(SOL_IP) || !defined(IP_TOS) +#if !defined(IPPROTO_IP) || !defined(IP_TOS) if(priorityinheritance) logger(DEBUG_ALWAYS, LOG_WARNING, "%s not supported on this platform for IPv4 connections", "PriorityInheritance"); #endif @@ -1154,8 +1154,7 @@ void close_network_connections(void) { if(myself && myself->connection) { subnet_update(myself, NULL, false); - terminate_connection(myself->connection, false); - free_connection(myself->connection); + connection_del(myself->connection); } for(int i = 0; i < listen_sockets; i++) {