]> git.meshlink.io Git - meshlink/blobdiff - src/net.c
Automatically configure and compile catta.
[meshlink] / src / net.c
index 8e5c2c1830ee3b489d73314606042734b978f4c5..c0ed984964ae000c34aa65088b8583a2af3f4889 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -67,7 +67,7 @@ void terminate_connection(meshlink_handle_t *mesh, connection_t *c, bool report)
 
                /* If the node is not reachable anymore but we remember it had an edge to us, clean it up */
 
-               if(report && !c->node->status.reachable) {
+               if(report && c->node && !c->node->status.reachable) {
                        edge_t *e;
                        e = lookup_edge(c->node, mesh->self);
                        if(e) {