-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible exchange leak in session establishment (#14416)
The CASESession and PASESession objects take ownership of their exchange contexts once passed, and will free and / or close them as appropriate. However, for this object lifecycle management to occur, exchange contexts must be passed to these objects in the first place. The current session establishment calls do not do this if early-out failures occur between allocation of the exchange contexts and calls to the session establishment methods. This commit fixes this problem by allocating exchanges immediately before the calls to the session establishment methods. This removes the possibility of early-out failures causing leaks. Fixes #13422
- Loading branch information
1 parent
917010b
commit 1716081
Showing
2 changed files
with
18 additions
and
6 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