From bbe1420ce85e0573e518fc1b58c143a92301aa52 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 14 Feb 2002 00:55:50 +0000 Subject: If helps to loop over the correct variable *sigh* --- sys/net/if_bridge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 41723e023f8..bcb6f075ef3 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.84 2002/02/07 23:50:20 jason Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.85 2002/02/14 00:55:49 jason Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -934,7 +934,7 @@ bridge_output(ifp, m, sa, rt) if (m1->m_flags & M_PKTHDR) { len = 0; - for (mx = m1; mx != NULL; mx = m->m_next) + for (mx = m1; mx != NULL; mx = mx->m_next) len += mx->m_len; m1->m_pkthdr.len = len; } @@ -1509,7 +1509,7 @@ bridge_span(sc, eh, morig) if (LIST_EMPTY(&sc->sc_spanlist)) return; - + m = m_copym2(morig, 0, M_COPYALL, M_NOWAIT); if (m == NULL) return; -- cgit v1.2.3