From a6507c047eefb2b91751a5571f4dddc90d94229f Mon Sep 17 00:00:00 2001 From: wilbur-se Date: Fri, 27 Sep 2024 11:01:44 +0800 Subject: [PATCH] pass right operation value to sMulticastGroupHandler according to join value --- src/inet/UDPEndPointImplSockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet/UDPEndPointImplSockets.cpp b/src/inet/UDPEndPointImplSockets.cpp index 31b16c0f8ec192..ed43dc0ecca8f3 100644 --- a/src/inet/UDPEndPointImplSockets.cpp +++ b/src/inet/UDPEndPointImplSockets.cpp @@ -821,7 +821,7 @@ CHIP_ERROR UDPEndPointImplSockets::IPv6JoinLeaveMulticastGroupImpl(InterfaceId a #if CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API if (sMulticastGroupHandler != nullptr) { - return sMulticastGroupHandler(aInterfaceId, aAddress, MulticastOperation::kJoin); + return sMulticastGroupHandler(aInterfaceId, aAddress, join ? MulticastOperation::kJoin : MulticastOperation::kLeave); } #endif // CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API