mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-14 01:26:52 +00:00
igmp: Fix optimized code by always skipping the first entry in the linked groups list
commit 8c52afb6ca21 ("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! */
|
||||
/* Skip the first group in the list, it is always the allsystems group added in igmp_start() */
|
||||
if(group != NULL) {
|
||||
group = group->next;
|
||||
if(groupref != NULL) {
|
||||
groupref = groupref->next;
|
||||
}
|
||||
|
||||
while (groupref) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user