Bugzilla – Attachment 2907 Details for
Bug 2613
Log connections dropped when MaxStartups is reached
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
log addresses too
bz2613.diff (text/plain), 650 bytes, created by
Damien Miller
on 2016-12-09 12:34:54 AEDT
(
hide
)
Description:
log addresses too
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2016-12-09 12:34:54 AEDT
Size:
650 bytes
patch
obsolete
>diff --git a/sshd.c b/sshd.c >index 53107ca..7dcc8d7 100644 >--- a/sshd.c >+++ b/sshd.c >@@ -1174,7 +1174,15 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) > continue; > } > if (drop_connection(startups) == 1) { >- debug("drop connection #%d", startups); >+ char *laddr = get_local_ipaddr(*newsock); >+ char *raddr = get_peer_ipaddr(*newsock); >+ >+ verbose("drop connection #%d from [%s]:%d " >+ "on [%s]:%d past MaxStartups", startups, >+ raddr, get_peer_port(*newsock), >+ laddr, get_local_port(*newsock)); >+ free(laddr); >+ free(raddr); > close(*newsock); > continue; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2613
:
2873
| 2907