Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2018 04:09:55 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338178 - in head/sys: netinet netinet6
Message-ID:  <201808220409.w7M49tCi085511@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Wed Aug 22 04:09:55 2018
New Revision: 338178
URL: https://svnweb.freebsd.org/changeset/base/338178

Log:
  in_mcast: fix copy paste error when clearing flag

Modified:
  head/sys/netinet/in_mcast.c
  head/sys/netinet6/in6_mcast.c

Modified: head/sys/netinet/in_mcast.c
==============================================================================
--- head/sys/netinet/in_mcast.c	Wed Aug 22 03:04:43 2018	(r338177)
+++ head/sys/netinet/in_mcast.c	Wed Aug 22 04:09:55 2018	(r338178)
@@ -276,7 +276,7 @@ inm_disconnect(struct in_multi *inm)
 		if (--ll_ifma->ifma_refcount == 0) {
 			if (ll_ifma->ifma_flags & IFMA_F_ENQUEUED) {
 				CK_STAILQ_REMOVE(&ifp->if_multiaddrs, ll_ifma, ifmultiaddr, ifma_link);
-				ifma->ifma_flags &= ~IFMA_F_ENQUEUED;
+				ll_ifma->ifma_flags &= ~IFMA_F_ENQUEUED;
 			}
 			MCDPRINTF("removed ll_ifma: %p from %s\n", ll_ifma, ifp->if_xname);
 			if_freemulti(ll_ifma);

Modified: head/sys/netinet6/in6_mcast.c
==============================================================================
--- head/sys/netinet6/in6_mcast.c	Wed Aug 22 03:04:43 2018	(r338177)
+++ head/sys/netinet6/in6_mcast.c	Wed Aug 22 04:09:55 2018	(r338178)
@@ -618,7 +618,7 @@ in6m_disconnect(struct in6_multi *inm)
 			ifma6_restart = true;
 			if (ll_ifma->ifma_flags & IFMA_F_ENQUEUED) {
 				CK_STAILQ_REMOVE(&ifp->if_multiaddrs, ll_ifma, ifmultiaddr, ifma_link);
-				ifma->ifma_flags &= ~IFMA_F_ENQUEUED;
+				ll_ifma->ifma_flags &= ~IFMA_F_ENQUEUED;
 			}
 			MCDPRINTF("removed ll_ifma: %p from %s\n", ll_ifma, ifp->if_xname);
 			if_freemulti(ll_ifma);



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