CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2015/12/09 02:02:02

Modified files:
        sys/net        : route.c 

Log message:
Do not trigger a KASSERT() when destroying/detaching an interface with
RTF_CLONED routes attached.

In thise case if_get(9) can return NULL inside rtflushclone1() because
ifdetach() starts by clearing the interface pointer in the index map.

So it is perfectly correct to bail and we're not going to leak any route
entry because we're garbage collecting all of them.

Reported by daniel@ and Aaron Miller <aaron DOT miller04 AT gmail DOT com>

Reply via email to