mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
* Per-IP connection unauthed connection limits
* m_close() exits fatally on failure * other cleanups --HG-- extra : convert_revision : bed6155e95a293c9fce7e889d283b5958f3035dc
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user