HomeFreeBSD

inetd: knock out some clang analyze warnings

Description

inetd: knock out some clang analyze warnings

chargen_dg: clang-analyze is convinced that endring could be non-NULL at
entry, and thus wants to assume that rs == NULL. Just independently
initialize rs if it's NULL to appease the analyzer.

getconfigent: policy leaks on return

free_connlist: reorganize the loop to make it clear that we're not going to
access conn after it's been freed.

cpmip/hashval: left-shifts performed will result in UB as we take
signed 0xABC3D20F and left shift it by 5.

Details

Provenance
kevansAuthored on
Parents
rS356214: Avoid few memory accesses in g_disk_done().
Branches
Unknown
Tags
Unknown