Fixed typos. When terminating a connection, it's status is not only set to
[tinc] / src / net.c
index f8c7306..60b7b79 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -821,11 +821,12 @@ cp
 
   if(cl->status.outgoing)
     {
-      alarm(5);
       signal(SIGALRM, sigalrm_handler);
+      alarm(5);
       syslog(LOG_NOTICE, "Try to re-establish outgoing connection in 5 seconds.");
     }
   
+  cl->status.active = 0;
   cl->status.remove = 1;
 cp
 }