Fix: remove old IPV6 routes on master

This commit is contained in:
fendo 2013-12-10 23:17:21 +01:00
parent 6b70732490
commit 786a8c4546
2 changed files with 10 additions and 4 deletions

View file

@ -2120,9 +2120,9 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e
free_ip_address(s);
// unroute IPv6, if setup
if (session[s].ppp.ipv6cp == Opened && session[s].ipv6prefixlen && del_routes)
if (session[s].ipv6route.s6_addr[0] && session[s].ipv6prefixlen && del_routes)
route6set(s, session[s].ipv6route, session[s].ipv6prefixlen, 0);
if (b)
{
// This session was part of a bundle