HomeFreeBSD

Use strdup in snmp_parse_server(..) when possible instead of malloc+strcpy

Description

Use strdup in snmp_parse_server(..) when possible instead of malloc+strcpy

This simplifies the code and mutes a Coverity warning about sc->cport being
improperly allocated

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

Details

Provenance
ngieAuthored on
Parents
rS310930: MFC r310693
Branches
Unknown
Tags
Unknown