1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00
freebsd/usr.sbin/bsnmpd
Enji Cooper 1b135e4f47 snmp_pdu_free the right object at the right time in snmptool_walk
r310892 was on the right track, but unfortunately it was resolving
the problem incorrectly and accidentally leaking memory in the
process.

- Call snmp_pdu_free on req before calling snmp_pdu_create on it
  at the bottom of the outer while loop
- Call snmp_pdu_free on resp after calling snmpwalk_nextpdu_create
  in the inner loop

MFC after:	12 days
X-MFC with:	r310729, r310892
Reported by:	valgrind
2016-12-31 10:01:25 +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 snmp_pdu_free the right object at the right time in snmptool_walk 2016-12-31 10:01:25 +00:00
Makefile
Makefile.inc Add a bsnmp package 2015-03-18 13:01:09 +00:00