Call RO_RTFREE() when we have detected the change of destination

address, otherwise the old route will be used with new destination.

MFC after:	1 week
This commit is contained in:
ae 2016-05-17 14:06:55 +00:00
parent 3a15b2c2c2
commit d1f53cbfea

View File

@ -826,8 +826,10 @@ again:
#endif
error = netisr_queue(NETISR_IPV6, m);
goto done;
} else
} else {
RO_RTFREE(ro);
needfiblookup = 1; /* Redo the routing table lookup. */
}
}
/* See if fib was changed by packet filter. */
if (fibnum != M_GETFIB(m)) {