]> git.baikalelectronics.ru Git - kernel.git/commit
igmp: fix incorrect unsolicit report count when join group
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 29 Aug 2018 10:06:08 +0000 (18:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Sep 2018 20:39:37 +0000 (13:39 -0700)
commita986a0bb374544fe295796382a7005db3e594b27
tree58b3ac21e9702ba129cc231fda80830ccdead06c
parent47c5ac56e04c08a3483ed470a8fc79ed0e89b1bb
igmp: fix incorrect unsolicit report count when join group

We should not start timer if im->unsolicit_count equal to 0 after decrease.
Or we will send one more unsolicit report message. i.e. 3 instead of 2 by
default.

Fixes: 1da177e4c3f41 ("Linux-2.6.12-rc2")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c