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/0e8cec8fc18f2f3ce32de45e9c54ba17008b1985 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; } }