-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug leaving stale service or subscription relays
In case a service or subscription was removed from a context by the application (e.g., with paf_unpublish()) while the object was not yet synced to the server, the service or subscription relay was left on the link. This could cause libpaf to later attempt to sync objects no longer in libpaf's internal database, which caused it to dereference a NULL pointer. This patch fixes the bug. In addition, a new test case is introduced, which publishes, unpublishes, subscribes and unsubscribes in a random pattern, with the servers going up and down in a random pattern as well. This test was able to reproduce this bug. Signed-off-by: Mattias Rönnblom <[email protected]>
- Loading branch information
1 parent
007a224
commit 9aa44b5
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters