Correct rev 1.56 which (incorrectly) reversed the test used to

decide if in_pcbpurgeif0 should be invoked.

Supported by:	FreeBSD Foundation
This commit is contained in:
Sam Leffler 2003-11-03 03:22:39 +00:00
parent 93f57d1562
commit 9ce7877897

View File

@ -423,7 +423,7 @@ in_control(so, cmd, data, ifp, td)
* XXX horrible hack to detect that we are being called
* from if_detach()
*/
if (ifaddr_byindex(ifp->if_index) != NULL) {
if (ifaddr_byindex(ifp->if_index) == NULL) {
in_pcbpurgeif0(&ripcbinfo, ifp);
in_pcbpurgeif0(&udbinfo, ifp);
}