terminate_connection(): only kill c->node->connection if it is pointing

to the same connection
This commit is contained in:
Sven-Haegar Koch 2012-04-21 01:51:36 +02:00 committed by Guus Sliepen
parent a96c4f016c
commit 7a6ca7a993

View file

@ -113,7 +113,7 @@ void terminate_connection(connection_t *c, bool report) {
c->status.active = false; c->status.active = false;
if(c->node) if(c->node && c->node->connection == c)
c->node->connection = NULL; c->node->connection = NULL;
if(c->edge) { if(c->edge) {