HomeFreeBSD

Initialize ret to SNMPD_INPUT_OK at the top of snmp_input_start(..) to

Description

Initialize ret to SNMPD_INPUT_OK at the top of snmp_input_start(..) to
avoid returning an uninitialized value

There are some really complicated, snakey if-statements combined with
switch statements that could result in an invalid value being returned
as ret

MFC after: 1 week
Reported by: Coverity
CID: 1006551

Details

Provenance
ngieAuthored on
Parents
rS310957: Use strlcpy when copying `com` to pdu->community to avoid potential
Branches
Unknown
Tags
Unknown