summaryrefslogtreecommitdiffstats
path: root/sys/net/if_me.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_me.c')
-rw-r--r--sys/net/if_me.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_me.c b/sys/net/if_me.c
index 9f0143c..a61e1db 100644
--- a/sys/net/if_me.c
+++ b/sys/net/if_me.c
@@ -487,7 +487,7 @@ me_check_nesting(struct ifnet *ifp, struct mbuf *m)
count = 1;
mtag = NULL;
- while ((mtag = m_tag_locate(m, MTAG_ME, 0, NULL)) != NULL) {
+ while ((mtag = m_tag_locate(m, MTAG_ME, 0, mtag)) != NULL) {
if (*(struct ifnet **)(mtag + 1) == ifp) {
log(LOG_NOTICE, "%s: loop detected\n", ifp->if_xname);
return (EIO);
OpenPOWER on IntegriCloud