Coverity-updates archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

New Defects reported by Coverity Scan for NetBSD-i386-user



Hi,

Please find the latest report on new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.

14 new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.
179 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 14 of 14 defect(s)


** CID 1269323:  Code maintainability issues  (UNUSED_VALUE)
/usr.sbin/npf/npfctl/npf_show.c: 324 in npfctl_print_filter()


________________________________________________________________________________________________________
*** CID 1269323:  Code maintainability issues  (UNUSED_VALUE)
/usr.sbin/npf/npfctl/npf_show.c: 324 in npfctl_print_filter()
318     	const void *marks;
319     	size_t mlen, len;
320     	const void *code;
321     	int type;
322     
323     	marks = npf_rule_getinfo(rl, &mlen);
>>>     CID 1269323:  Code maintainability issues  (UNUSED_VALUE)
>>>     Pointer "code" returned by "npf_rule_getcode(rl, &type, &len)" is never used.
324     	if (!marks && (code = npf_rule_getcode(rl, &type, &len)) != NULL) {
325     		/*
326     		 * No marks, but the byte-code is present.  This must
327     		 * have been filled by libpcap(3) or possibly an unknown
328     		 * to us byte-code.
329     		 */


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/1448?tab=overview

To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782 .



Home | Main Index | Thread Index | Old Index