From: Ivo Timmermans Date: Tue, 30 May 2000 12:38:15 +0000 (+0000) Subject: In terminate_connection, only send a notification to hosts that are directly connecte... X-Git-Tag: release-1.0pre2~7 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=e7f22d2f5f0a5fcd52da7512ab734b0ba52c623f;p=tinc In terminate_connection, only send a notification to hosts that are directly connected to us. (DEL_HOST gets forwarded automatically.) --- diff --git a/src/net.c b/src/net.c index 27586ec3..0eb5ef38 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.33 2000/05/30 12:31:41 zarq Exp $ + $Id: net.c,v 1.34 2000/05/30 12:38:15 zarq Exp $ */ #include "config.h" @@ -861,7 +861,7 @@ cp that are still connected to us. */ for(p = conn_list; p != NULL; p = p->next) { - if(!p->status.remove) + if(!p->status.remove && p->status.meta) for(q = conn_list; q != NULL; q = q->next) if(q->status.remove) send_del_host(p, q);