summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-11-27 06:35:26 +0000
committerglebius <glebius@FreeBSD.org>2012-11-27 06:35:26 +0000
commitd927dc20395a1bdcb9085bb11d037e17b8dff7c4 (patch)
tree1baff54bb3c212e71ad72119d21a58aedbf3ba6a
parentadc108b87e4c1bc0bc3165e6588350f49580effd (diff)
downloadFreeBSD-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.c2
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)
OpenPOWER on IntegriCloud