summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-03-25 12:57:37 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-03-25 12:57:37 +0000
commit1e03393b6813b8dc77916665d8940475f06acdb2 (patch)
tree610a57785ec09fa7efafc13d2664f30de3ef0016 /svr-auth.c
parent46d53c37fa27994d17646e5eb922678a7ed4b3e7 (diff)
Some cleanups/fixes for various TRACE statements
--HG-- extra : convert_revision : 84eb6fedc6df0666f8053b9018bf16635dbfb257
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++;