summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2020-09-29 14:22:51 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2020-09-29 14:22:51 +0000
commit3a5779fe0fbe6d5a13603f001f76fb5c66591fe2 (patch)
treea2ed70c2e7e455652791f851d71c6af86b4d9fb3 /usr.sbin/relayd
parent3e304545f328dbfcb67df5f376eb13de8f7d229e (diff)
Fix 3 bugs:
1) Don't declare subagentx_index SA_DSTATE_CLOSE until all subfunctions are done with it. This prevents premature freeing of the object. 2) In subagentx_index_free make sure that if an subagentx_object moves out from under us we correct for this. 3) Don't call subagentx_index_free_finalize if sai_cstate is not SA_CSTATE_CLOSE. The first and last can be triggered when calling free while we're disconnected from the agentx master. The second one can only be triggered with when the freed object is not the last one in the list.
Diffstat (limited to 'usr.sbin/relayd')
0 files changed, 0 insertions, 0 deletions