summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-03-25 12:57:44 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-03-25 12:57:44 +0000
commit3cee7b6378c826ba9cf87c830bb199d7a4020a85 (patch)
treed8d5f8da1637f9a2e1919d8b7d6614fb6f89893d /svr-auth.c
parentdde673f8d7f2500c00c14384a17f5ee74e80431c (diff)
parent1e03393b6813b8dc77916665d8940475f06acdb2 (diff)
merge of 6ace12c71fc2773210f2f3d374c96622ca54fe48
and 84eb6fedc6df0666f8053b9018bf16635dbfb257 --HG-- extra : convert_revision : 11034278bd1917bebcbdc69cf53b1891ce9db121
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/svr-auth.c b/svr-auth.c
index f0fca38..d0eba9b 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -315,14 +315,15 @@ void send_msg_userauth_failure(int partial, int incrfail) {
buf_setpos(typebuf, 0);
buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len),
typebuf->len);
+
+ TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes,
+ buf_getptr(typebuf, typebuf->len)));
+
buf_free(typebuf);
buf_putbyte(ses.writepayload, partial ? 1 : 0);
encrypt_packet();
- TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes,
- buf_getptr(typebuf, typebuf->len)));
-
if (incrfail) {
usleep(300000); /* XXX improve this */
ses.authstate.failcount++;