summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-06-06 13:29:41 +0000
committerae <ae@FreeBSD.org>2015-06-06 13:29:41 +0000
commitad4eef6e15d2ae1de604f25c34a649a49fab352b (patch)
tree378c2cec900a066492836c2cbc6d891c7ebd2bf0 /sys/net
parentf1be259e6af9ac775f04f085d8c66353f768d5b4 (diff)
downloadFreeBSD-src-ad4eef6e15d2ae1de604f25c34a649a49fab352b.zip
FreeBSD-src-ad4eef6e15d2ae1de604f25c34a649a49fab352b.tar.gz
MFC r276902,282536:
Pass mtag argument into m_tag_locate() to continue the search from the last found mtag.
Diffstat (limited to 'sys/net')
-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