mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 02:39:15 +00:00
igmp: Fix optimized code by always skipping the first entry in the linked groups list
commit 8c52afb6ca
("igmp: Optimize code by always skipping the first entry in the linked groups list - it is always the "allsystems" entry")
accidently changes the code logic. it should check groupref rather than group.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
8f8f56914b
commit
5e15125b3d
@ -374,8 +374,8 @@ igmp_input(struct pbuf *p, struct netif *inp, const ip4_addr_t *dest)
|
|||||||
|
|
||||||
/* Do not send messages on the all systems group address! */
|
/* Do not send messages on the all systems group address! */
|
||||||
/* Skip the first group in the list, it is always the allsystems group added in igmp_start() */
|
/* Skip the first group in the list, it is always the allsystems group added in igmp_start() */
|
||||||
if(group != NULL) {
|
if(groupref != NULL) {
|
||||||
group = group->next;
|
groupref = groupref->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (groupref) {
|
while (groupref) {
|
||||||
|
Loading…
Reference in New Issue
Block a user