mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
Fix bug #49578: lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET
This commit is contained in:
parent
b90682dc8b
commit
fdcd8f6faf
@ -2770,7 +2770,7 @@ lwip_socket_drop_registered_memberships(int s)
|
|||||||
ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr);
|
ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].if_addr);
|
||||||
ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr);
|
ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr);
|
||||||
|
|
||||||
netconn_join_leave_group(sockets[s].conn, &multi_addr, &if_addr, NETCONN_LEAVE);
|
netconn_join_leave_group(sock->conn, &multi_addr, &if_addr, NETCONN_LEAVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user