mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
fixed bug #44649 lwip_socket_drop_registered_memberships
This commit is contained in:
parent
f967933e8b
commit
c998faeeab
@ -2555,8 +2555,8 @@ static void lwip_socket_drop_registered_memberships(int s)
|
|||||||
|
|
||||||
for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) {
|
for (i = 0; i < LWIP_SOCKET_MAX_MEMBERSHIPS; i++) {
|
||||||
if (socket_ipv4_multicast_memberships[i].sa == sa) {
|
if (socket_ipv4_multicast_memberships[i].sa == sa) {
|
||||||
netconn_join_leave_group(sockets[s].conn, &socket_ipv4_multicast_memberships[i].if_addr,
|
netconn_join_leave_group(sockets[s].conn, &socket_ipv4_multicast_memberships[i].multi_addr,
|
||||||
&socket_ipv4_multicast_memberships[i].multi_addr, NETCONN_LEAVE);
|
&socket_ipv4_multicast_memberships[i].if_addr, NETCONN_LEAVE);
|
||||||
socket_ipv4_multicast_memberships[i].sa = 0;
|
socket_ipv4_multicast_memberships[i].sa = 0;
|
||||||
ip_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr);
|
ip_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr);
|
||||||
ip_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr);
|
ip_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user