Don't run graph algorithms if no edge is deleted in terminate_connection().
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 23 Mar 2002 20:13:56 +0000 (20:13 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 23 Mar 2002 20:13:56 +0000 (20:13 +0000)
src/net.c

index 5fd3823..d6809d5 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: net.c,v 1.35.4.165 2002/03/22 11:43:46 guus Exp $
+    $Id: net.c,v 1.35.4.166 2002/03/23 20:13:56 guus Exp $
 */
 
 #include "config.h"
 */
 
 #include "config.h"
@@ -198,11 +198,11 @@ cp
         }
 
       edge_del(c->edge);
         }
 
       edge_del(c->edge);
-    }
 
 
-  /* Run MST and SSSP algorithms */
+      /* Run MST and SSSP algorithms */
 
 
-  graph();
+      graph();
+    }
 
   /* Check if this was our outgoing connection */
 
 
   /* Check if this was our outgoing connection */