[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       Martijn van Duren <martijn () openbsd ! org>
Date:       2020-09-29 14:22:50
Message-ID: 2a5a3ea18944f0bd () openbsd ! org
[Download RAW message or body]

CVSROOT:	/cvs
Module name:	src
Changes by:	martijn@cvs.openbsd.org	2020/09/29 08:22:50

Modified files:
	lib/libagentx  : subagentx.c 

Log message:
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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic