]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Minor amendment to r9226: don't log GSSAPI failure in the Event Log
authorSimon Tatham <anakin@pobox.com>
Mon, 18 Jul 2011 18:09:36 +0000 (18:09 +0000)
committerSimon Tatham <anakin@pobox.com>
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.)

[originally from svn r9232]
[r9226 == 0b79fe0bcbfd4113e8ed413fe0c8e0bbd34ea5b2]

ssh.c

diff --git a/ssh.c b/ssh.c
index e8f65b58b3eac875dd6dedc9dac013382e6e0abf..dafa148911e9227b06864af14a25fc01b0fd3499 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");