From 1cf0fdd22ed973af5133c3a287f47d9546ed6168 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 17 May 2010 18:44:53 +0000 Subject: [PATCH] Don't close 'n', just close 'above_n'. (closes issue #17345) Reported by: wdoekes git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@263587 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/app.c b/main/app.c index 0aa0b7ee90..a7fba76f0b 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); } } -- 2.47.2