summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2009-07-04 06:00:57 +0000
committerAlexander Motin <mav@FreeBSD.org>2009-07-04 06:00:57 +0000
commit263f23a907ff9bccfead6f285cf07edadfe99a61 (patch)
tree201c569e6145b30e186dfdd00fdb6bbf33ce7e64
parenta1a22ef8ce13e2a6fc18415f9334f85edbd07d53 (diff)
Notes
-rw-r--r--sys/netgraph/ng_iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index f40cbe498eeb8..d88334d005558 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -365,7 +365,8 @@ ng_iface_output(struct ifnet *ifp, struct mbuf *m,
}
/* Protect from deadly infinite recursion. */
- while ((mtag = m_tag_locate(m, MTAG_NGIF, MTAG_NGIF_CALLED, NULL))) {
+ mtag = NULL;
+ while ((mtag = m_tag_locate(m, MTAG_NGIF, MTAG_NGIF_CALLED, mtag))) {
if (*(struct ifnet **)(mtag + 1) == ifp) {
log(LOG_NOTICE, "Loop detected on %s\n", ifp->if_xname);
m_freem(m);