diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-19 08:50:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-19 08:50:01 -0400 |
| commit | d1a85fe40d93d31f7f0daf54912a159fcabfaddc (patch) | |
| tree | e947467da69832a04e10e24334e4fbc06285884d /pimd/pim_igmp.c | |
| parent | 06a5959f10f30740dcdf7d09a9c77f1504fc3328 (diff) | |
| parent | 2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 (diff) | |
Merge pull request #2608 from pacovn/PVS-Studio_dead_code_1
eigrpd lib pimd zebra: dead code (PVS-Studio)
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 42bdd80ce2..b46f1b5e9d 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -909,10 +909,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) { |
