1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-27 02:02:26 +00:00

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 == 0b79fe0bcb]
This commit is contained in:
Simon Tatham 2011-07-18 18:09:36 +00:00
parent c33c02fb84
commit 363f57396f

3
ssh.c
View File

@ -7718,7 +7718,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
logevent("Server refused keyboard-interactive authentication"); logevent("Server refused keyboard-interactive authentication");
} else if (s->type==AUTH_TYPE_GSSAPI) { } else if (s->type==AUTH_TYPE_GSSAPI) {
/* always quiet, so no c_write */ /* 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) { } else if (s->type == AUTH_TYPE_KEYBOARD_INTERACTIVE) {
logevent("Keyboard-interactive authentication failed"); logevent("Keyboard-interactive authentication failed");
c_write_str(ssh, "Access denied\r\n"); c_write_str(ssh, "Access denied\r\n");