diff options
author | glebius <glebius@FreeBSD.org> | 2012-11-27 06:35:26 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-11-27 06:35:26 +0000 |
commit | d927dc20395a1bdcb9085bb11d037e17b8dff7c4 (patch) | |
tree | 1baff54bb3c212e71ad72119d21a58aedbf3ba6a | |
parent | adc108b87e4c1bc0bc3165e6588350f49580effd (diff) | |
download | FreeBSD-src-d927dc20395a1bdcb9085bb11d037e17b8dff7c4.zip FreeBSD-src-d927dc20395a1bdcb9085bb11d037e17b8dff7c4.tar.gz |
Better safe than sorry: reinitialize eh after ng_ether(4) and
if_bridge(4) processing, since mbuf may be modified there.
Submitted by: youngari
-rw-r--r-- | sys/net/if_ethersubr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 0b621d7..44ac25d 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -593,6 +593,7 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m) CURVNET_RESTORE(); return; } + eh = mtod(m, struct ether_header *); } /* @@ -607,6 +608,7 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m) CURVNET_RESTORE(); return; } + eh = mtod(m, struct ether_header *); } #if defined(INET) || defined(INET6) |