HomeFreeBSD

snmp_discover_engine: fix up req/resp (PDU object) handling a bit

Description

snmp_discover_engine: fix up req/resp (PDU object) handling a bit

  • Call snmp_pdu_free on req and resp when done with the objects
  • Call snmp_pdu_free on req before calling snmp_pdu_create on it again

MFC after: 1 week

Details

Provenance
ngieAuthored on
Parents
rS310987: snmp_output_err_resp, snmp_output_resp: allocate `object` using calloc, not
Branches
Unknown
Tags
Unknown