diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-07-01 08:08:56 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-07-01 08:08:56 +0000 |
| commit | 505feb8f3785b9f266002efdb2d31c6c51b25c9c (patch) | |
| tree | eb5239464eb31db2d042ce786efa65f004f7ff9e /sys/netgraph | |
| parent | f09a384fae9ce5f1f2d1384ec7844132bf0a73cc (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index 18c37c212402..cd65ad3b6d29 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -382,7 +382,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); |
