summaryrefslogtreecommitdiffstats
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-01-10 03:26:46 +0000
committerae <ae@FreeBSD.org>2015-01-10 03:26:46 +0000
commit598e92a5becb302e98ad9606d9bf7dfcd89b14ba (patch)
tree427e4326c297e0be61a8034095a972ee087a2575 /sys/net/if_gre.c
parent075ac8bd5409d35046cc6ab751d36519893b8ca5 (diff)
downloadFreeBSD-src-598e92a5becb302e98ad9606d9bf7dfcd89b14ba.zip
FreeBSD-src-598e92a5becb302e98ad9606d9bf7dfcd89b14ba.tar.gz
Fix an error introduced in r274246.
Pass mtag argument into m_tag_locate() to continue the search from the last found mtag. X-MFC after: r274246
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 23e55e2..3162c6f 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -752,7 +752,7 @@ gre_check_nesting(struct ifnet *ifp, struct mbuf *m)
count = 1;
mtag = NULL;
- while ((mtag = m_tag_locate(m, MTAG_GRE, 0, NULL)) != NULL) {
+ while ((mtag = m_tag_locate(m, MTAG_GRE, 0, mtag)) != NULL) {
if (*(struct ifnet **)(mtag + 1) == ifp) {
log(LOG_NOTICE, "%s: loop detected\n", ifp->if_xname);
return (EIO);
OpenPOWER on IntegriCloud