diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-09-29 14:22:51 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-09-29 14:22:51 +0000 |
commit | 3a5779fe0fbe6d5a13603f001f76fb5c66591fe2 (patch) | |
tree | a2ed70c2e7e455652791f851d71c6af86b4d9fb3 /usr.sbin/relayd | |
parent | 3e304545f328dbfcb67df5f376eb13de8f7d229e (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