diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2009-04-23 15:56:01 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2009-04-23 15:56:01 +0000 |
commit | 8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd (patch) | |
tree | 73d4030dfceae7dd50ce566066416539a8e946d6 /sys/net/if.c | |
parent | 6064c5d3623d78ce57fe1be9de9e613953534ce1 (diff) | |
download | src-8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd.tar.gz src-8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd.zip |
Notes
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 991f8808ff0c..5c2e22420f81 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1799,7 +1799,8 @@ ifunit_ref(const char *name) IFNET_RLOCK(); TAILQ_FOREACH(ifp, &V_ifnet, if_link) { - if (strncmp(name, ifp->if_xname, IFNAMSIZ) == 0) + if (strncmp(name, ifp->if_xname, IFNAMSIZ) == 0 && + !(ifp->if_flags & IFF_DYING)) break; } if (ifp != NULL) |