From 7a6ca7a993e5907497d97fef09e375698dde182f Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sat, 21 Apr 2012 01:51:36 +0200 Subject: [PATCH 1/1] terminate_connection(): only kill c->node->connection if it is pointing to the same connection --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1