freebsd-dev/usr.sbin/bsnmpd
Enji Cooper 86b3c16952 snmp_output_err_resp, snmp_output_resp: allocate object using calloc, not
on the stack

Some of the callers try to determine whether or not `object` is valid by
testing the value for NULL, which will never be true if it's a stack value,
so in order to be clear and correct down the call stack, use a heap
allocated object.

This also addresses a Coverity issue by initializing all of `object` via
calloc

MFC after:	1 week
Reported by:	Coverity
CID:		1006392
2016-12-31 22:46:17 +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_output_err_resp, snmp_output_resp: allocate object using calloc, not 2016-12-31 22:46:17 +00:00
Makefile
Makefile.inc Add a bsnmp package 2015-03-18 13:01:09 +00:00