vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F 825921
Don't audit SSH_INVALID_USER twice.
Jan F 825921
Jan F 825921
PRIVSEP(getpwnamallow()) a few lines above already did this.
Jan F 825921
Jan F 825921
diff -ur openssh/auth2.c openssh-5.8p1/auth2.c
Jan F 825921
--- openssh/auth2.c	2011-03-02 02:32:52.383773622 +0100
Jan F 825921
+++ openssh-5.8p1/auth2.c	2011-03-02 03:32:34.585110911 +0100
Jan F 825921
@@ -250,9 +250,6 @@
Jan F 825921
 		} else {
Jan F 825921
 			logit("input_userauth_request: invalid user %s", user);
Jan F 825921
 			authctxt->pw = fakepw();
Jan F 825921
-#ifdef SSH_AUDIT_EVENTS
Jan F 825921
-			PRIVSEP(audit_event(SSH_INVALID_USER));
Jan F 825921
-#endif
Jan F 825921
 		}
Jan F 825921
 #ifdef USE_PAM
Jan F 825921
 		if (options.use_pam)