X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fnet.c;h=60f46cbb30410115c4e138ee55d2b2246f2688e3;hp=fd79fdc7ed84ee59233fbac74096e166287fd552;hb=e913f3f232e4809b7218d081ab9f94cef1c94ac3;hpb=8d64561dbc0542e7e1185591b8ecde3e56e1bfca diff --git a/src/net.c b/src/net.c index fd79fdc..60f46cb 100644 --- a/src/net.c +++ b/src/net.c @@ -186,6 +186,12 @@ void terminate_connection(connection_t *c, bool report) { closesocket(c->socket); if(c->edge) { + if(!c->node) { + logger(LOG_ERR, "Connection to %s (%s) has an edge but node is NULL!", c->name, c->hostname); + // And that should never happen. + abort(); + } + if(report && !tunnelserver) send_del_edge(everyone, c->edge);