-
-
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.
net_ssh: Fix IP address extraction on failed connect.
When clients fail to negotiate an SSH session (usually spam connections), the underlying socket file descriptor was -1 by the time we tried to log it. In fact, we already have the IP address available to us in a buffer from the start of the session, so just use that directly for generating the event, rather than trying to query it again when it's no longer available to us.
- Loading branch information
1 parent
424dab9
commit dbb37a2
Showing
1 changed file
with
15 additions
and
10 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