diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index de67c4a8370..b6cf22819c5 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.57 2001/06/01 00:28:25 angelos Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.58 2001/06/06 22:55:03 jasoni Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1927,7 +1927,7 @@ bridge_filter(sc, ifp, eh, m) if (hlen < sizeof(struct ip)) goto dropit; if (hlen > m->m_len) { - if ((m = m_pullup(m, sizeof(struct ip))) == NULL) + if ((m = m_pullup(m, hlen)) == NULL) return (NULL); ip = mtod(m, struct ip *); } |