components/openssh/patches/048-maxstartups-log_dropped.patch
branchs11u3-sru
changeset 7946 165bf092aa9c
parent 7944 8206eb363f71
child 7947 3fa78a5a2366
--- a/components/openssh/patches/048-maxstartups-log_dropped.patch	Tue Apr 25 00:30:07 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#
-# When MaxStartups of unauthenticated concurrent connections is hit,
-# additional connections are dropped.
-#
-# Dropped connections should be logged. Server administrator should be able to
-# find this information and might be interested in details. 
-#
-# Patch source: in-house
-# Offered upstream:
-# https://bugzilla.mindrot.org/show_bug.cgi?id=2613
-#
-diff -pur old/sshd.c new/sshd.c
---- old/sshd.c
-+++ new/sshd.c
-@@ -1419,7 +1419,8 @@ server_accept_loop(int *sock_in, int *so
- 				continue;
- 			}
- 			if (drop_connection(startups) == 1) {
--				debug("drop connection #%d", startups);
-+				logit("MaxStartups: dropping connection #%d",
-+				    startups);
- 				close(*newsock);
- 				continue;
- 			}