[dev] New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Wed May 22 17:03:22 EDT 2019
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
1 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1480402: (DEADCODE)
/zebra/zebra_fpm_netlink.c: 444 in netlink_route_info_encode()
/zebra/zebra_fpm_netlink.c: 499 in netlink_route_info_encode()
________________________________________________________________________________________________________
*** CID 1480402: (DEADCODE)
/zebra/zebra_fpm_netlink.c: 444 in netlink_route_info_encode()
438
439 encap = nhi->encap_info.encap_type;
440 if (encap > FPM_NH_ENCAP_NONE) {
441 addattr_l(&req->n, in_buf_len, RTA_ENCAP_TYPE, &encap,
442 sizeof(uint16_t));
443 switch (encap) {
>>> CID 1480402: (DEADCODE)
>>> Execution cannot reach this statement: "case FPM_NH_ENCAP_NONE:".
444 case FPM_NH_ENCAP_NONE:
445 break;
446 case FPM_NH_ENCAP_VXLAN:
447 vxlan = &nhi->encap_info.vxlan_encap;
448 nest = addattr_nest(&req->n, in_buf_len,
449 RTA_ENCAP);
/zebra/zebra_fpm_netlink.c: 499 in netlink_route_info_encode()
493 if (encap > FPM_NH_ENCAP_NONE) {
494 rta_addattr_l(rta, sizeof(buf), RTA_ENCAP_TYPE,
495 &encap, sizeof(uint16_t));
496 rtnh->rtnh_len += sizeof(struct rtattr) +
497 sizeof(uint16_t);
498 switch (encap) {
>>> CID 1480402: (DEADCODE)
>>> Execution cannot reach this statement: "case FPM_NH_ENCAP_NONE:".
499 case FPM_NH_ENCAP_NONE:
500 break;
501 case FPM_NH_ENCAP_VXLAN:
502 vxlan = &nhi->encap_info.vxlan_encap;
503 nest = rta_nest(rta, sizeof(buf), RTA_ENCAP);
504 rta_addattr_l(rta, sizeof(buf), VXLAN_VNI,
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeDU1AdI-2FBBrnda9ub5tlg3U-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJmyT17zkDjPd9e75Z26kqso8OiRQK9-2FLmL78LRfaYLwQlv2pWxMswo9vjbiuvG-2BEz1AcxfmDdU0YCWS10Cn0Wk-2FFTqFhX-2FK2h0Pbv0bXKtkVgut1cC0yanNVCK7Um6r7KFyrea9yJjFYcKyPkWtumkiTsHFspkdHmFw0YtHEw30Fw-3D-3D
More information about the dev
mailing list