# HG changeset patch # User Matt Johnston # Date 1143291464 0 # Node ID fb3678bdb8c791a12b27bac82d0562903aa4ec1a # Parent 7dad470ad4aa431e78a3c8c469e377a0ab71a94e# Parent baea1d43e7eb90939d6244dc4032e616c8672bb9 merge of 6ace12c71fc2773210f2f3d374c96622ca54fe48 and 84eb6fedc6df0666f8053b9018bf16635dbfb257 diff -r 7dad470ad4aa -r fb3678bdb8c7 cli-auth.c --- a/cli-auth.c Wed Mar 22 05:12:18 2006 +0000 +++ b/cli-auth.c Sat Mar 25 12:57:44 2006 +0000 @@ -236,8 +236,8 @@ void cli_auth_try() { + int finished = 0; TRACE(("enter cli_auth_try")) - int finished = 0; CHECKCLEARTOWRITE(); diff -r 7dad470ad4aa -r fb3678bdb8c7 cli-chansession.c --- a/cli-chansession.c Wed Mar 22 05:12:18 2006 +0000 +++ b/cli-chansession.c Sat Mar 25 12:57:44 2006 +0000 @@ -162,14 +162,14 @@ static void put_termcodes() { - TRACE(("enter put_termcodes")) - struct termios tio; unsigned int sshcode; const struct TermCode *termcode; unsigned int value; unsigned int mapcode; + TRACE(("enter put_termcodes")) + unsigned int bufpos1, bufpos2; if (tcgetattr(STDIN_FILENO, &tio) == -1) { diff -r 7dad470ad4aa -r fb3678bdb8c7 common-channel.c --- a/common-channel.c Wed Mar 22 05:12:18 2006 +0000 +++ b/common-channel.c Sat Mar 25 12:57:44 2006 +0000 @@ -236,7 +236,7 @@ TRACE(("checkclose: writefd %d, readfd %d, errfd %d, sentclosed %d, recvclosed %d", channel->writefd, channel->readfd, channel->errfd, channel->sentclosed, channel->recvclosed)) - TRACE(("writebuf %d extrabuf %s extrabuf %d", + TRACE(("writebuf size %d extrabuf ptr 0x%x extrabuf size %d", cbuf_getused(channel->writebuf), channel->writebuf, channel->writebuf ? 0 : cbuf_getused(channel->extrabuf))) diff -r 7dad470ad4aa -r fb3678bdb8c7 svr-auth.c --- a/svr-auth.c Wed Mar 22 05:12:18 2006 +0000 +++ b/svr-auth.c Sat Mar 25 12:57:44 2006 +0000 @@ -315,14 +315,15 @@ 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++;