comparison svr-auth.c @ 1139:43a8ea69b24c

Fix problem where auth timeout wasn't checked when waiting for ident
author Matt Johnston <matt@ucc.asn.au>
date Mon, 03 Aug 2015 21:59:40 +0800
parents aaf576b27a10
children 9169e4e7cbee
comparison
equal deleted inserted replaced
1138:cc3916a7afd9 1139:43a8ea69b24c
390 encrypt_packet(); 390 encrypt_packet();
391 391
392 /* authdone must be set after encrypt_packet() for 392 /* authdone must be set after encrypt_packet() for
393 * delayed-zlib mode */ 393 * delayed-zlib mode */
394 ses.authstate.authdone = 1; 394 ses.authstate.authdone = 1;
395 svr_ses.connect_time = 0; 395 ses.connect_time = 0;
396
396 397
397 if (ses.authstate.pw_uid == 0) { 398 if (ses.authstate.pw_uid == 0) {
398 ses.allowprivport = 1; 399 ses.allowprivport = 1;
399 } 400 }
400 401