Use event_add(), instead of calling appl_agentx_send() directly. If an
authormartijn <martijn@openbsd.org>
Fri, 27 Oct 2023 10:23:58 +0000 (10:23 +0000)
committermartijn <martijn@openbsd.org>
Fri, 27 Oct 2023 10:23:58 +0000 (10:23 +0000)
commiteb6ea173c1ab1320d1dfbf35c07e747499699de0
tree0ea25ec11055889206a4ad834d8c78ab9c548079
parent64ccb183418759eed0244f4fb60c387dec6145b5
Use event_add(), instead of calling appl_agentx_send() directly. If an
error occurs the connection will be freed and if the caller uses the
connection afterwards it will lead to a use after free.

OK tb@
usr.sbin/snmpd/application_agentx.c