mirror of
https://github.com/bstansell/conserver.git
synced 2024-12-18 20:37:56 +00:00
off by one found by Ed Maste (emaste@github)
This commit is contained in:
parent
6526fcd002
commit
5ab4cad967
@ -918,7 +918,7 @@ ExecCmd(void)
|
||||
closefrom(i);
|
||||
#else
|
||||
i = GetMaxFiles();
|
||||
for ( /* i above */ ; --i > 3;) {
|
||||
for ( /* i above */ ; --i > 2;) {
|
||||
if (i != pout[0] && i != pin[1])
|
||||
close(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user