From 7e9cafe7e0f0277bc9bfdb650a7aa5ae00d4fe08 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 17 May 2010 18:44:53 +0000 Subject: 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 --- main/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3