comparison svr-auth.c @ 300:baea1d43e7eb

Some cleanups/fixes for various TRACE statements
author Matt Johnston <matt@ucc.asn.au>
date Sat, 25 Mar 2006 12:57:37 +0000
parents 0cfba3034be5
children 973fccb59ea4 7e43f5e473b9
comparison
equal deleted inserted replaced
291:55a99934db87 300:baea1d43e7eb
313 } 313 }
314 314
315 buf_setpos(typebuf, 0); 315 buf_setpos(typebuf, 0);
316 buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len), 316 buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len),
317 typebuf->len); 317 typebuf->len);
318
319 TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes,
320 buf_getptr(typebuf, typebuf->len)));
321
318 buf_free(typebuf); 322 buf_free(typebuf);
319 323
320 buf_putbyte(ses.writepayload, partial ? 1 : 0); 324 buf_putbyte(ses.writepayload, partial ? 1 : 0);
321 encrypt_packet(); 325 encrypt_packet();
322
323 TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes,
324 buf_getptr(typebuf, typebuf->len)));
325 326
326 if (incrfail) { 327 if (incrfail) {
327 usleep(300000); /* XXX improve this */ 328 usleep(300000); /* XXX improve this */
328 ses.authstate.failcount++; 329 ses.authstate.failcount++;
329 } 330 }