summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-11-03 03:22:39 +0000
committersam <sam@FreeBSD.org>2003-11-03 03:22:39 +0000
commit4462f3d45a0fb1a1409ca87152f6b8f9dde733c0 (patch)
tree0d28d904c2251aa169c30e903310d086f5b0e2b2 /sys/netinet/in.c
parent15f1414b695972b15cfda012547d873cad6aa63e (diff)
downloadFreeBSD-src-4462f3d45a0fb1a1409ca87152f6b8f9dde733c0.zip
FreeBSD-src-4462f3d45a0fb1a1409ca87152f6b8f9dde733c0.tar.gz
Correct rev 1.56 which (incorrectly) reversed the test used to
decide if in_pcbpurgeif0 should be invoked. Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 89c4123..95ff844 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -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);
}
OpenPOWER on IntegriCloud