svn commit: r276902 - head/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Sat Jan 10 03:26:48 UTC 2015
Author: ae
Date: Sat Jan 10 03:26:46 2015
New Revision: 276902
URL: https://svnweb.freebsd.org/changeset/base/276902
Log:
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
Modified:
head/sys/net/if_gre.c
Modified: head/sys/net/if_gre.c
==============================================================================
--- head/sys/net/if_gre.c Sat Jan 10 03:13:16 2015 (r276901)
+++ head/sys/net/if_gre.c Sat Jan 10 03:26:46 2015 (r276902)
@@ -752,7 +752,7 @@ gre_check_nesting(struct ifnet *ifp, str
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);
More information about the svn-src-all
mailing list