From d927dc20395a1bdcb9085bb11d037e17b8dff7c4 Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 27 Nov 2012 06:35:26 +0000 Subject: Better safe than sorry: reinitialize eh after ng_ether(4) and if_bridge(4) processing, since mbuf may be modified there. Submitted by: youngari --- sys/net/if_ethersubr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net/if_ethersubr.c') 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) -- cgit v1.1