From: Frank Kardel Date: Sun, 30 Sep 2007 16:09:50 +0000 (+0000) Subject: ChangeLog: X-Git-Tag: NTP_4_2_5P81~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95e604e876ada52d2a6e8a2d19fa80f15d94e0b1;p=thirdparty%2Fntp.git ChangeLog: [Bug 917] config parse leaves files open ntp_scanner.c: Bug 917: config parse leaves files open bk: 46ffca4e_jBzDlyztbejx_XyOWqghQ --- diff --git a/ChangeLog b/ChangeLog index dc0d12526..0883bbba1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 917] config parse leaves files open * [Bug 912] detect conflicting enable/disable configuration on interfaces sharing an IP address * [Bug 771] compare scopeid if available for IPv6 addresses * [Bug 899] Only show -i/--jaildir -u/--user options if we HAVE_DROPROOT. diff --git a/ntpd/ntp_scanner.c b/ntpd/ntp_scanner.c index 3414e2893..82d34fc50 100644 --- a/ntpd/ntp_scanner.c +++ b/ntpd/ntp_scanner.c @@ -525,8 +525,9 @@ int yylex() if (!(curr_include_level > 0)) return 0; else { - ip_file = fp[--curr_include_level]; - return T_EOC; + FCLOSE(fp[curr_include_level]); + ip_file = fp[--curr_include_level]; + return T_EOC; } } else if (is_EOC(ch)) { expect_string = NO_ARG; /* Reset expect_string */