diff options
author | green <green@FreeBSD.org> | 2004-01-09 02:03:24 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2004-01-09 02:03:24 +0000 |
commit | 73049104d9f3ffff1a96da1b536274a7e04b6297 (patch) | |
tree | 14e8afec141c82c4a423a486e486040f48ee5b28 /sys/netgraph | |
parent | ae72c2e86b33381de1c1f3ce4cb9301e88c0a5f8 (diff) | |
download | FreeBSD-src-73049104d9f3ffff1a96da1b536274a7e04b6297.zip FreeBSD-src-73049104d9f3ffff1a96da1b536274a7e04b6297.tar.gz |
Also, don't crash in the netgraph disconnect node if the interface is
detached from the other direction.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_ether.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index b741b07..db8e941 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -628,7 +628,8 @@ ng_ether_disconnect(hook_p hook) if (hook == priv->upper) { priv->upper = NULL; - priv->ifp->if_hwassist = priv->hwassist; /* restore h/w csum */ + if (priv->ifp != NULL) /* restore h/w csum */ + priv->ifp->if_hwassist = priv->hwassist; } else if (hook == priv->lower) { priv->lower = NULL; priv->lowerOrphan = 0; |