]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: return check (Coverity 1465490)
authorpaco <paco@voltanet.io>
Tue, 26 Jun 2018 15:31:00 +0000 (17:31 +0200)
committerpaco <paco@voltanet.io>
Tue, 26 Jun 2018 17:34:04 +0000 (19:34 +0200)
Unless someone intentionally changes MCAST_ALL_ROUTERS ("224.0.0.2") with a
wrong IP, this should never fail, so the fix is using "(void)" at the left
of the function call, as an explicit way of indicating we discard the
return value on purpose.

Signed-off-by: F. Aragon <paco@voltanet.io>
pimd/pim_igmp_mtrace.c

index 673e2ca5b8f2e66566128a7ce92da6ec89440646..95d0278a34317a789275e5357ee9dab41b33e310 100644 (file)
@@ -817,7 +817,7 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr,
                 * Previous-hop router not known,
                 * packet is sent to an appropriate multicast address
                 */
-               inet_aton(MCAST_ALL_ROUTERS, &nh_addr);
+               (void)inet_aton(MCAST_ALL_ROUTERS, &nh_addr);
        }
 
        /* 6.2.2 8. If this router is the Rendez-vous Point */