-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overwriting of the second argument (address) to connect(2) withou…
…t restoring it, close #70 The code in connect_pre_handle() was overwriting the address parameter passed to the connect(2) system call, but it was not restoring the original value before the call returned. This could lead to issues if the caller of connect(2) was relying on the original address value. To fix this, the code now saves the original address value in the socket_info struct, and then restores it in the connect_exiting_handle() function before the system call returns.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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