diff options
| author | David Greenman <dg@FreeBSD.org> | 1997-04-23 01:44:30 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1997-04-23 01:44:30 +0000 |
| commit | 06339180179f0952000740f09ea83515d484b540 (patch) | |
| tree | 2a71c2c099ef7fdc1c51095fcb2b0ed0b6982d6a /sys/dev/fxp | |
| parent | 804974bacc9369e6b2c6d3ecb047362f3ef03c31 (diff) | |
Notes
Diffstat (limited to 'sys/dev/fxp')
| -rw-r--r-- | sys/dev/fxp/if_fxp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 5a041caa04162..a6d23980a5e75 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_fxp.c,v 1.32 1997/03/24 11:33:46 bde Exp $ + * $Id: if_fxp.c,v 1.33 1997/03/25 14:54:38 davidg Exp $ */ /* @@ -634,6 +634,10 @@ rcvloop: u_short total_len; total_len = rfa->actual_size & (MCLBYTES - 1); + if (total_len < sizeof(struct ether_header)) { + m_freem(m); + goto rcvloop; + } m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = total_len - sizeof(struct ether_header); |
