diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-06-06 22:55:04 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-06-06 22:55:04 +0000 |
commit | 8a29104ab257862de0643057dc32db69f93ca5a9 (patch) | |
tree | 49e58ead5b9d80842441c27dccb2eac9159504fa /sys/net/if_bridge.c | |
parent | ae47640602f2171e23bc8b5001046073daf68087 (diff) |
in bridge_filter(), pullup hlen, not sizeof(struct ip); ok jason@
Diffstat (limited to 'sys/net/if_bridge.c')
-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 *); } |