aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 18:44:53 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 18:44:53 +0000
commit7e9cafe7e0f0277bc9bfdb650a7aa5ae00d4fe08 (patch)
tree078bb10ae53230f8c83a6ef25d5a43a86cafbca0 /main
parentd54ccd28cc685a35ec6ac0ef63d525bbafea3afe (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.c2
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);
}
}