Index: auth1.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/auth1.c,v
retrieving revision 1.103
diff -u -p -r1.103 auth1.c
--- auth1.c	12 Aug 2004 12:40:25 -0000	1.103
+++ auth1.c	16 Nov 2004 02:41:09 -0000
@@ -266,8 +266,10 @@ do_authloop(Authctxt *authctxt)
 		if (authenticated)
 			return;
 
-		if (authctxt->failures++ > options.max_authtries)
+		if (authctxt->failures++ > options.max_authtries) {
+			logit(AUTH_FAIL_MSG, authctxt->user);
 			packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
+		}
 
 		packet_start(SSH_SMSG_FAILURE);
 		packet_send();
Index: auth2.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/auth2.c,v
retrieving revision 1.131
diff -u -p -r1.131 auth2.c
--- auth2.c	11 Sep 2004 13:07:03 -0000	1.131
+++ auth2.c	16 Nov 2004 02:41:42 -0000
@@ -254,8 +254,10 @@ userauth_finish(Authctxt *authctxt, int 
 		/* now we can break out */
 		authctxt->success = 1;
 	} else {
-		if (authctxt->failures++ > options.max_authtries)
+		if (authctxt->failures++ > options.max_authtries) {
+			logit(AUTH_FAIL_MSG, authctxt->user);
 			packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
+		}
 		methods = authmethods_get();
 		packet_start(SSH2_MSG_USERAUTH_FAILURE);
 		packet_put_cstring(methods);
