diff options
author | F. Aragon <paco@voltanet.io> | 2018-07-02 18:50:20 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-07-06 01:10:15 +0200 |
commit | 2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 (patch) | |
tree | ff80fa30b11c02764a44f6f20781c5cdb6f07c90 /pimd/pim_igmp.c | |
parent | Merge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff) | |
download | frr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.tar.xz frr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.zip |
eigrpd lib pimd zebra: dead code (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'pimd/pim_igmp.c')
-rw-r--r-- | pimd/pim_igmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index c980f5fcb..92993ff1b 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -919,10 +919,9 @@ static int pim_igmp_read(struct thread *t) socklen_t fromlen = sizeof(from); socklen_t tolen = sizeof(to); ifindex_t ifindex = -1; - int cont = 1; int len; - while (cont) { + while (1) { len = pim_socket_recvfromto(igmp->fd, buf, sizeof(buf), &from, &fromlen, &to, &tolen, &ifindex); if (len < 0) { |