X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;fp=src%2Fnet.c;h=1fecd88fd00d0038e0020124cc303680022e5a33;hp=4b64492dfcaa8ef91237104f87ead6a4d49d18fd;hb=d2732abcc7ab0b10577c4eeedb2135d8f5f6b4d5;hpb=92afeec172f1f8a9f8b0bfdb94311bf0405433bb diff --git a/src/net.c b/src/net.c index 4b64492d..1fecd88f 100644 --- a/src/net.c +++ b/src/net.c @@ -218,6 +218,7 @@ void terminate_connection(connection_t *c, bool report) { } edge_del(c->edge); + c->edge = NULL; /* Run MST and SSSP algorithms */