comparison svr-auth.c @ 21:d7cc5b484a2e

- Port restriction code back in - Remove bad strerror() logging
author Matt Johnston <matt@ucc.asn.au>
date Tue, 22 Jun 2004 10:47:16 +0000
parents f76c9389e9e0
children c1e5d9195402
comparison
equal deleted inserted replaced
13:db2c8e6fb284 21:d7cc5b484a2e
339 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_SUCCESS); 339 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_SUCCESS);
340 encrypt_packet(); 340 encrypt_packet();
341 341
342 svr_ses.authstate.authdone = 1; 342 svr_ses.authstate.authdone = 1;
343 343
344 if (svr_ses.authstate.pw->pw_uid == 0) {
345 ses.allowprivport = 1;
346 }
347
344 /* Remove from the list of pre-auth sockets. Should be m_close(), since if 348 /* Remove from the list of pre-auth sockets. Should be m_close(), since if
345 * we fail, we might end up leaking connection slots, and disallow new 349 * we fail, we might end up leaking connection slots, and disallow new
346 * logins - a nasty situation. */ 350 * logins - a nasty situation. */
347 m_close(svr_ses.childpipe); 351 m_close(svr_ses.childpipe);
348 352