From 4c08ac7873f54ab83c10a004e8717cb3301d4080 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 30 Aug 2019 17:34:05 -0700 Subject: [PATCH] Fix MULTICAST_GATHER reply problem in root --- root/root.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/root/root.cpp b/root/root.cpp index f0da286ef..0e77f9f8a 100644 --- a/root/root.cpp +++ b/root/root.cpp @@ -351,9 +351,11 @@ static void handlePacket(const int v4s,const int v6s,const InetAddress *const ip pkt.addSize(2); unsigned int l = 0; - for(auto g=forGroup->second.begin();((lsecond.end()));++l,++g) { - if (g->first != source) + for(auto g=forGroup->second.begin();((lsecond.end()));++g) { + if (g->first != source) { + ++l; g->first.appendTo(pkt); + } } if (l > 0) {