diff --git a/src/core/ipv4/igmp.c b/src/core/ipv4/igmp.c index 79ba690d..d8e8f9c2 100644 --- a/src/core/ipv4/igmp.c +++ b/src/core/ipv4/igmp.c @@ -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) {