summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/monitor.c b/monitor.c
index 132f60df9..6acb20259 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.124 2013/05/17 00:13:13 djm Exp $ */ 1/* $OpenBSD: monitor.c,v 1.125 2013/05/19 02:42:42 djm Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -422,8 +422,7 @@ monitor_child_preauth(Authctxt *_authctxt, struct monitor *pmonitor)
422 } 422 }
423 if (ent->flags & (MON_AUTHDECIDE|MON_ALOG)) { 423 if (ent->flags & (MON_AUTHDECIDE|MON_ALOG)) {
424 auth_log(authctxt, authenticated, partial, 424 auth_log(authctxt, authenticated, partial,
425 auth_method, auth_submethod, 425 auth_method, auth_submethod);
426 compat20 ? " ssh2" : "");
427 if (!authenticated) 426 if (!authenticated)
428 authctxt->failures++; 427 authctxt->failures++;
429 } 428 }
@@ -1168,6 +1167,7 @@ mm_answer_keyallowed(int sock, Buffer *m)
1168 case MM_USERKEY: 1167 case MM_USERKEY:
1169 allowed = options.pubkey_authentication && 1168 allowed = options.pubkey_authentication &&
1170 user_key_allowed(authctxt->pw, key); 1169 user_key_allowed(authctxt->pw, key);
1170 pubkey_auth_info(authctxt, key);
1171 auth_method = "publickey"; 1171 auth_method = "publickey";
1172 if (options.pubkey_authentication && allowed != 1) 1172 if (options.pubkey_authentication && allowed != 1)
1173 auth_clear_options(); 1173 auth_clear_options();
@@ -1207,8 +1207,7 @@ mm_answer_keyallowed(int sock, Buffer *m)
1207 hostbased_chost = chost; 1207 hostbased_chost = chost;
1208 } else { 1208 } else {
1209 /* Log failed attempt */ 1209 /* Log failed attempt */
1210 auth_log(authctxt, 0, 0, auth_method, NULL, 1210 auth_log(authctxt, 0, 0, auth_method, NULL);
1211 compat20 ? " ssh2" : "");
1212 free(blob); 1211 free(blob);
1213 free(cuser); 1212 free(cuser);
1214 free(chost); 1213 free(chost);