Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2015 03:26:47 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276902 - head/sys/net
Message-ID:  <201501100326.t0A3Qlxw065243@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501100326.t0A3Qlxw065243>