-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This refactor, and massive code simplification, is a follow-up to the double free discovery in 3b4d2b3. Beacuse a hostname in Linux can never be more than 64 chars, we can safely use a stack buffer instead of calloc(), reducing complexity and simplifying the code further with the use of strlcat(). Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
66 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