* Per-IP connection unauthed connection limits

* m_close() exits fatally on failure
* other cleanups

--HG--
extra : convert_revision : bed6155e95a293c9fce7e889d283b5958f3035dc
This commit is contained in:
Matt Johnston
2006-03-08 12:41:27 +00:00
parent bf045a0564
commit 422f4f2b41
5 changed files with 80 additions and 52 deletions

View File

@@ -838,9 +838,7 @@ static void execchild(struct ChanSess *chansess) {
/* 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 */