From 363f57396f89c69f50412b7b3a3bdce37454a1d3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 18 Jul 2011 18:09:36 +0000 Subject: [PATCH] Minor amendment to r9226: don't log GSSAPI failure in the Event Log twice. (Once in the GSSAPI code, once at the top of the main auth loop. Removed the latter.) [originally from svn r9232] [r9226 == 0b79fe0bcbfd4113e8ed413fe0c8e0bbd34ea5b2] --- ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index e8f65b58..dafa1489 100644 --- a/ssh.c +++ b/ssh.c @@ -7718,7 +7718,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, logevent("Server refused keyboard-interactive authentication"); } else if (s->type==AUTH_TYPE_GSSAPI) { /* always quiet, so no c_write */ - logevent("GSSAPI authentication failed"); + /* also, the code down in the GSSAPI block has + * already logged this in the Event Log */ } else if (s->type == AUTH_TYPE_KEYBOARD_INTERACTIVE) { logevent("Keyboard-interactive authentication failed"); c_write_str(ssh, "Access denied\r\n");