Why don't these connection_t's get cleaned up?
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 6 Sep 2002 21:22:35 +0000 (21:22 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 6 Sep 2002 21:22:35 +0000 (21:22 +0000)
src/net.c

index 13933d9a4bc4c33c9e3c2d0dd7728d86c91a2d12..69a0133e652bcd399a63bf3d8e594d417559772e 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.
 
-    $Id: net.c,v 1.35.4.177 2002/09/04 16:26:44 guus Exp $
+    $Id: net.c,v 1.35.4.178 2002/09/06 21:22:35 guus Exp $
 */
 
 #include "config.h"
@@ -248,6 +248,12 @@ cp
             }
           else
             {
+              if(c->status.remove)
+                {
+                  syslog(LOG_WARNING, _("Old connection_t for %s (%s) status %04x still lingering, deleting..."), c->name, c->hostname, c->status);
+                  connection_del(c);
+                  continue;
+                }
               if(debug_lvl >= DEBUG_CONNECTIONS)
                 syslog(LOG_WARNING, _("Timeout from %s (%s) during authentication"),
                        c->name, c->hostname);