Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialog sync: Fix ref miscount during post-sync cleanup
The hash reference must only be decremented a single time during the lifetime of a dialog. Given that multiple pieces of code may attempt to delete a dialog concurrently (e.g. a BIN "delete" packet and the post-sync cleanup routine), the only way to guarantee a single decrement of the hash ref is by using the dialog state machine transition. Iff we're the ones to transition from ACK -> DELETED, we can (and MUST) also decrement the hash reference.
- Loading branch information