G. D. Fuego
2011-Dec-01 16:17 UTC
Bad protocol version identification from UNKNOWN (patch)
I was just helping someone track down why they were getting a "Bad protocol version identification" error for sshd, and I noticed that it was logging that the connection was coming from UNKNOWN. It looks like when this error condition is triggered, the socket is closed and then the error is logged. Unfortunately the logging calls get_remote_ipaddr, which returns UNKNOWN if there is no socket. The attached fix closes the socket after the logging is complete. -------------- next part -------------- A non-text attachment was scrubbed... Name: sshd-bad-protocol-logging.patch Type: text/x-patch Size: 557 bytes Desc: not available URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20111201/6a92ed3a/attachment.bin>
Reasonably Related Threads
- [Bug 1246] Protocol version identification errors don't log the sender IP anymore, always UNKNOWN
- sshd "bad protocol version identification" messages
- [Bug 1246] Protocol version identification errors don't log the sender IP anymore, always UNKNOWN
- ssh - Connection closed by UNKNOWN
- Bug#377276: "Did not receive identification string" warning reappeared