summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-02-12 19:34:34 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-02-12 19:34:34 +0000
commitcc8557f55020f551475419ba033b941b0e527fc3 (patch)
tree52061c8403604558a6b156dd7544bb11729506f6
parentc979c169a7defcb67232e2c2508dd787f12ec9da (diff)
Notes
-rw-r--r--sys/net/bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index 2684bad320d9..ff01a22eaa46 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -928,7 +928,7 @@ bdg_forward(struct mbuf *m0, struct ifnet *dst)
}
ip = mtod(m0, struct ip *);
}
- } while (pfh = TAILQ_NEXT(pfh, pfil_link));
+ } while ((pfh = TAILQ_NEXT(pfh, pfil_link)) != NULL);
/*
* If we get here, the firewall has passed the pkt, but the mbuf
* pointer might have changed. Restore ip and the fields ntohs()'d.