Mercurial > dropbear
diff svr-chansession.c @ 277:044bc108b9b3
* Per-IP connection unauthed connection limits
* m_close() exits fatally on failure
* other cleanups
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 12:41:27 +0000 |
parents | 541b14504870 |
children | 1f5ec029dfe8 |
line wrap: on
line diff
--- a/svr-chansession.c Fri Dec 09 06:10:27 2005 +0000 +++ b/svr-chansession.c Wed Mar 08 12:41:27 2006 +0000 @@ -838,9 +838,7 @@ /* close file descriptors except stdin/stdout/stderr * Need to be sure FDs are closed here to avoid reading files as root */ for (i = 3; i <= (unsigned int)ses.maxfd; i++) { - if (m_close(i) == DROPBEAR_FAILURE) { - dropbear_exit("Error closing file desc"); - } + m_close(i); } /* clear environment */