diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-17 18:44:53 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-17 18:44:53 +0000 |
commit | 7e9cafe7e0f0277bc9bfdb650a7aa5ae00d4fe08 (patch) | |
tree | 078bb10ae53230f8c83a6ef25d5a43a86cafbca0 /main | |
parent | d54ccd28cc685a35ec6ac0ef63d525bbafea3afe (diff) |
Don't close 'n', just close 'above_n'.
(closes issue #17345)
Reported by: wdoekes
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@263587 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c index 0aa0b7ee9..a7fba76f0 100644 --- a/main/app.c +++ b/main/app.c @@ -2010,7 +2010,7 @@ void ast_close_fds_above_n(int n) if (entry->d_name[0] == '.') { continue; } - if ((x = strtol(entry->d_name, &result, 10)) && x >= n) { + if ((x = strtol(entry->d_name, &result, 10)) && x > n) { close(x); } } |