mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
In case of an early return from the function there is no need to zero
the route upfront, so defer as long as we can. MFC after: 3 days
This commit is contained in:
parent
92ea5581dd
commit
8987b01ea9
1 changed files with 2 additions and 2 deletions
|
|
@ -390,8 +390,6 @@ nd6_ns_output(struct ifnet *ifp, const struct in6_addr *daddr6,
|
|||
caddr_t mac;
|
||||
struct route_in6 ro;
|
||||
|
||||
bzero(&ro, sizeof(ro));
|
||||
|
||||
if (IN6_IS_ADDR_MULTICAST(taddr6))
|
||||
return;
|
||||
|
||||
|
|
@ -418,6 +416,8 @@ nd6_ns_output(struct ifnet *ifp, const struct in6_addr *daddr6,
|
|||
return;
|
||||
m->m_pkthdr.rcvif = NULL;
|
||||
|
||||
bzero(&ro, sizeof(ro));
|
||||
|
||||
if (daddr6 == NULL || IN6_IS_ADDR_MULTICAST(daddr6)) {
|
||||
m->m_flags |= M_MCAST;
|
||||
im6o.im6o_multicast_ifp = ifp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue