Insert Addressing::LeaveGroup call on dropping multicast group membership.

Omitting this call left invalid reference to deleted group in the
multicast groups hash-map and any upcoming attempt to join the group will
crash the system. Fixes #6736.
This commit is contained in:
Siarzhuk Zharski
2012-08-19 22:38:21 +02:00
parent 1e068aea46
commit fa2fa02613
2 changed files with 2 additions and 0 deletions
@@ -61,6 +61,7 @@ template<typename Addressing> status_t
MulticastGroupInterface<Addressing>::Drop()
{
fAddresses.Clear();
Addressing::LeaveGroup(this);
fFilterMode = kInclude;
return B_OK;
}
@@ -50,6 +50,7 @@ template<typename Addressing> status_t
MulticastGroupInterface<Addressing>::Drop()
{
fAddresses.Clear();
Addressing::LeaveGroup(this);
fFilterMode = kInclude;
return B_OK;
}