Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/svr-auth.c Thu Jun 03 18:08:34 2004 +0000 +++ b/svr-auth.c Tue Jun 22 10:47:16 2004 +0000 @@ -341,6 +341,10 @@ svr_ses.authstate.authdone = 1; + if (svr_ses.authstate.pw->pw_uid == 0) { + ses.allowprivport = 1; + } + /* Remove from the list of pre-auth sockets. Should be m_close(), since if * we fail, we might end up leaking connection slots, and disallow new * logins - a nasty situation. */