From 8a29104ab257862de0643057dc32db69f93ca5a9 Mon Sep 17 00:00:00 2001 From: jasoni Date: Wed, 6 Jun 2001 22:55:04 +0000 Subject: in bridge_filter(), pullup hlen, not sizeof(struct ip); ok jason@ --- sys/net/if_bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_bridge.c') 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 *); } -- cgit v1.2.3