Fix routes inverted delete/add in cluster mode

This commit is contained in:
fendo 2012-12-18 19:18:05 +01:00
parent 709b2b0419
commit 0e8cec8fc1

View file

@ -1014,7 +1014,11 @@ int cluster_listinvert_session(int sidnew, int sidtodel)
if ( cluster_changes[i].id == sidnew && cluster_changes[i].type == C_CSESSION) 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; break;
} }
} }