Add a test that would cause a use after free previously by sending a
authormartijn <martijn@openbsd.org>
Fri, 27 Oct 2023 10:26:20 +0000 (10:26 +0000)
committermartijn <martijn@openbsd.org>
Fri, 27 Oct 2023 10:26:20 +0000 (10:26 +0000)
commite024f79d1742353cf5680106c4fbd19da1b0b060
tree79d9ec93813f47396a02ecb4ed958924263505a3
parenteb6ea173c1ab1320d1dfbf35c07e747499699de0
Add a test that would cause a use after free previously by sending a
protocol error-ed message and immediately followed up by a connection
close.

OK tb@
regress/usr.sbin/snmpd/Makefile
regress/usr.sbin/snmpd/agentx.c
regress/usr.sbin/snmpd/regress.h
regress/usr.sbin/snmpd/snmpd_regress.c