New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Tue Sep 22 00:07:01 UTC 2020


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 1497109:  Error handling issues  (CHECKED_RETURN)
/lib/northbound.c: 125 in nb_node_new_cb()


________________________________________________________________________________________________________
*** CID 1497109:  Error handling issues  (CHECKED_RETURN)
/lib/northbound.c: 125 in nb_node_new_cb()
119     		nb_node->parent_list = sparent_list->priv;
120     
121     	/* Set flags. */
122     	if (CHECK_FLAG(snode->nodetype, LYS_CONTAINER | LYS_LIST)) {
123     		bool config_only = true;
124     
>>>     CID 1497109:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "yang_snodes_iterate_subtree" without checking return value (as is done elsewhere 4 out of 5 times).
125     		yang_snodes_iterate_subtree(snode, NULL,
126     					    nb_node_check_config_only, 0,
127     					    &config_only);
128     		if (config_only)
129     			SET_FLAG(nb_node->flags, F_NB_NODE_CONFIG_ONLY);
130     	}


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DjWDC_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTwDACLceOPPOu08r4LwA48liGVM-2BEdKtNWmuXCOiRTtY6qTlEZ4-2BAT1BER-2F1xhojjvYZTWJx6qGKOtQWITi9AXXGdvk0TSMh3VJAeJpCURclyCXgl8PTn-2Fd5G2VtPJRgXKh7AGSsoteQSBDH-2BOMufnYo3MOH-2Fd-2FHy8-2BOlBrKQIJCjMPZ6VD1ZeU3RnLQ1S81jM-3D




More information about the dev mailing list