X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.c;h=58db16e29f1d26778a6a649adcea0af1f49b448f;hb=7a6ca7a993e5907497d97fef09e375698dde182f;hp=2565be113506502626af2c65ff49c7cb8cf7b61c;hpb=a96c4f016c9fff2392d85f762e16f5430c0b6463;p=meshlink diff --git a/src/net.c b/src/net.c index 2565be11..58db16e2 100644 --- a/src/net.c +++ b/src/net.c @@ -113,7 +113,7 @@ void terminate_connection(connection_t *c, bool report) { c->status.active = false; - if(c->node) + if(c->node && c->node->connection == c) c->node->connection = NULL; if(c->edge) {