mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
igmp_leave:add check of dev status in igmp_leavegroup
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
parent
3f1fd42f73
commit
78b64cc220
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ int igmp_leavegroup(struct net_driver_s *dev,
|
|||
|
||||
/* Send a leave if the flag is set according to the state diagram */
|
||||
|
||||
if (IS_LASTREPORT(group->flags))
|
||||
if (IFF_IS_UP(dev->d_flags) && IS_LASTREPORT(group->flags))
|
||||
{
|
||||
ninfo("Schedule Leave Group message\n");
|
||||
IGMP_STATINCR(g_netstats.igmp.leave_sched);
|
||||
|
|
Loading…
Reference in a new issue