New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Fri May 20 15:46:24 UTC 2022


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 1517953:  Error handling issues  (CHECKED_RETURN)
/zebra/kernel_netlink.c: 313 in netlink_socket()


________________________________________________________________________________________________________
*** CID 1517953:  Error handling issues  (CHECKED_RETURN)
/zebra/kernel_netlink.c: 313 in netlink_socket()
307     		memset(&snl, 0, sizeof(snl));
308     		snl.nl_family = AF_NETLINK;
309     		snl.nl_groups = groups;
310     
311     #if defined SOL_NETLINK
312     		if (ext_groups)
>>>     CID 1517953:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "setsockopt(sock, 270, 1, &ext_groups, 8U)" without checking return value. This library function may fail and return an error code.
313     			setsockopt(sock, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP,
314     				   &ext_groups, sizeof(ext_groups));
315     #endif
316     
317     		/* Bind the socket to the netlink structure for anything. */
318     		ret = bind(sock, (struct sockaddr *)&snl, sizeof(snl));


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BkxBoZjryQtr5SpUD80NNfE-3DlR7R_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTygTXHgUJj742OPix6zQjx8ggx-2BCR30rJSJ4522raQaXf7-2BSkQQnADlUdUqyjKseerMy5SaGqbGYf7RctOG9iBLthenlJYIz9fP-2FsG-2B-2Ft3CMgHTxRrm4EzIKt73ez-2Fh7ciie3zBo7eaNuVjC2w5tqRPQDHq2b1-2F6iD92nWTneZMmQ-3D-3D




More information about the dev mailing list