projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: inverted delete/add routes in cluster mode
[l2tpns.git]
/
l2tpns.c
diff --git
a/l2tpns.c
b/l2tpns.c
index
0da9a24
..
850cd76
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-5548,8
+5548,7
@@
int sessionsetup(sessionidt s, tunnelidt t)
if (ip == session[i].ip)
{
if (ip == session[i].ip)
{
- sessionkill(i, "Duplicate IP address");
- cluster_listinvert_session(s, i);
+ sessionshutdown(i, "Duplicate IP address", CDN_ADMIN_DISC, TERM_ADMIN_RESET); // close radius/routes, etc.
continue;
}
continue;
}
@@
-5570,7
+5569,7
@@
int sessionsetup(sessionidt s, tunnelidt t)
// Drop the new session in case of duplicate sessionss, not the old one.
if (!strcasecmp(user, session[i].user))
// Drop the new session in case of duplicate sessionss, not the old one.
if (!strcasecmp(user, session[i].user))
- session
kill(i, "Duplicate session for users");
+ session
shutdown(i, "Duplicate session for users", CDN_ADMIN_DISC, TERM_ADMIN_RESET); // close radius/routes, etc.
}
}
}
}