Minor amendment to r9226: don't log GSSAPI failure in the Event Log
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 18 Jul 2011 18:09:36 +0000 (18:09 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 18 Jul 2011 18:09:36 +0000 (18:09 +0000)
twice. (Once in the GSSAPI code, once at the top of the main auth
loop. Removed the latter.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@9232 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index e8f65b5..dafa148 100644 (file)
--- 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");