[dev] New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Wed Oct 2 20:59:17 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 1486720:  Null pointer dereferences  (NULL_RETURNS)
/bgpd/bgp_zebra.c: 212 in bgp_ifp_destroy()


________________________________________________________________________________________________________
*** CID 1486720:  Null pointer dereferences  (NULL_RETURNS)
/bgpd/bgp_zebra.c: 212 in bgp_ifp_destroy()
206     {
207     	struct bgp *bgp;
208     
209     	bgp = bgp_lookup_by_vrf_id(ifp->vrf_id);
210     
211     	if (BGP_DEBUG(zebra, ZEBRA))
>>>     CID 1486720:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing "bgp", which is known to be "NULL".
212     		zlog_debug("Rx Intf del VRF %u IF %s", bgp->vrf_id, ifp->name);
213     
214     	if (bgp)
215     		bgp_update_interface_nbrs(bgp, ifp, NULL);
216     
217     	bgp_mac_del_mac_entry(ifp);


________________________________________________________________________________________________________
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-2FJkfqtKw2cqCwzCWMisK6o32Ebx-2FwUoIVvS3E3SYk2LqnQKLsj8DG3-2BmYzeRMZTs6Zpzb9pR93aVcT4LHv6IkJZTK64LRWzW5FfXb7UpPoxUNoGHLB-2FDQZs-2Fj7wFcI37xvXXhMWbh8v0BHV9r-2BNhftbVdgi8N0ScLVODbD2yHzMscg-3D-3D




More information about the dev mailing list