diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-20 14:37:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-20 14:37:51 +0000 |
commit | 54afcfbfb4e0e972455b870887151cb04d29c9c7 (patch) | |
tree | c1495aaa5f8d083b6752345cdbc15b2bbbda972c /server-fn.c | |
parent | b292f71c49b4222b34684aee44029ca2d6aeb4dd (diff) |
Display the number of failed password attempts (if any) when the server is
locked. From Tom Doherty.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c index 3080bed4..409f65bc 100644 --- a/server-fn.c +++ b/server-fn.c @@ -213,9 +213,11 @@ server_unlock(const char *s) } server_locked = 0; + password_failures = 0; return (0); wrong: + password_failures++; for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c = ARRAY_ITEM(&clients, i); if (c == NULL || c->prompt_buffer == NULL) @@ -223,7 +225,7 @@ wrong: *c->prompt_buffer = '\0'; c->prompt_index = 0; - server_status_client(c); + server_redraw_client(c); } return (-1); |