From: Guus Sliepen Date: Fri, 6 Sep 2002 21:22:35 +0000 (+0000) Subject: Why don't these connection_t's get cleaned up? X-Git-Tag: import-tinc-1.1~785^2~232 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5638b9830f9cfe43f545c37cfd7ccf1d4b4bfcc6;p=meshlink Why don't these connection_t's get cleaned up? --- diff --git a/src/net.c b/src/net.c index 13933d9a..69a0133e 100644 --- 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);