]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't close 'n', just close 'above_n'.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 17 May 2010 18:44:53 +0000 (18:44 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 17 May 2010 18:44:53 +0000 (18:44 +0000)
(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

index 0aa0b7ee90add6aa0c6896fb7d940a9934aa0487..a7fba76f0b2f79b1fdc1778963cf31091ba93a72 100644 (file)
@@ -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);
                        }
                }