appl_agentx_free() closes any open sessions before freeing everything up.
authormartijn <martijn@openbsd.org>
Tue, 24 Oct 2023 13:37:02 +0000 (13:37 +0000)
committermartijn <martijn@openbsd.org>
Tue, 24 Oct 2023 13:37:02 +0000 (13:37 +0000)
commit273d3fb05d0b81ab8db0042292c2795934b14f3f
treebe6f2de69f54f779f6a4a5af38372fd70ff83d1d
parent7e7e7ff78403a4e363fc215388516d9e8fa7e94c
appl_agentx_free() closes any open sessions before freeing everything up.
Up until now all sessions were closed with reasonShutdown, which is not
accurate for every situation. Give it an additional reason argument that
propagates to appl_agentx_forceclose().

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