From: Tilghman Lesher Date: Mon, 17 May 2010 18:44:53 +0000 (+0000) Subject: Don't close 'n', just close 'above_n'. X-Git-Tag: 1.6.2.9-rc1~2^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf0fdd22ed973af5133c3a287f47d9546ed6168;p=thirdparty%2Fasterisk.git 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 --- 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); } }