freebsd-skq/usr.sbin/bsnmpd
Enji Cooper 570afb920c Call snmp_pdu_free on req/resp with a consistent, correct pattern
- snmp_pdu_free should be called before snmp_pdu_create is called
  again
- snmp_pdu_free should be called on the resp to snmp_dialog when
  successful

Tested with the following bsnmp commands:

  % export SNMPUSER=bsnmp SNMPPASSWD=bsnmptest
  % SNMP_ARGS="-A proto=sha -C context='' -K -P proto=des -v 3 -r 0"
  % bsnmpset $SNMP_ARGS sysLocation="MyAgent"
  % bsnmpget $SNMP_ARGS sysLocation
  % bsnmpwalk $SNMP_ARGS

MFC after:	12 days
X-MFC with:	r310729, r310892, r310894
2017-01-01 00:23:43 +00:00
..
bsnmpd Don't explicitly build tcp wrappers support into bsnmpd; make it conditional 2016-12-28 16:34:49 +00:00
gensnmptree Add META_MODE support. 2015-06-13 19:20:56 +00:00
modules Fix the build by moving the initializers for len/nswapdev down below the 2016-12-28 08:11:41 +00:00
tools Call snmp_pdu_free on req/resp with a consistent, correct pattern 2017-01-01 00:23:43 +00:00
Makefile
Makefile.inc Add a bsnmp package 2015-03-18 13:01:09 +00:00