From: fendo Date: Tue, 18 Dec 2012 18:18:05 +0000 (+0100) Subject: Fix routes inverted delete/add in cluster mode X-Git-Tag: 2.2.1-2fdn3.1~3 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/refs/heads/dev-lac?hp=709b2b0419595bd99594840118740bb243566dcb Fix routes inverted delete/add in cluster mode --- diff --git a/cluster.c b/cluster.c index b2a244e..9277f41 100644 --- a/cluster.c +++ b/cluster.c @@ -1014,7 +1014,11 @@ int cluster_listinvert_session(int sidnew, int sidtodel) if ( cluster_changes[i].id == sidnew && cluster_changes[i].type == C_CSESSION) { - inew = i; + if (session[i].tunnel != T_FREE) + inew = i; + else + return 0; // This a free session no invert. + break; } }