-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io, modules: Fix memory errors and leaks.
* io_tls: Ensure that the TLS session list is rebuilt immediately whenever SSL sessions are removed from the list (and subsequently freed). Although the list is locked for removal, in the main TLS I/O loop, the list isn't rebuilt during an iteration, only at the beginning, so if a session was removed at the beginning of the function, prior to the poll call, it was possible for now freed sessions to be accessed during the session traversal. To prevent this, force a list rebuild immediately in these cases. This addresses a wide variety of memory corruption / invalid accesses previously caused by this module. * mod_oauth: Run cleanup code on success, not just failure. * mod_webmail: Run clenaup code on off-nominal failure case.
- Loading branch information
1 parent
c94e012
commit 4a854f9
Showing
3 changed files
with
22 additions
and
3 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
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