From: Juergen Perlinger Date: Mon, 30 Nov 2015 05:03:47 +0000 (+0100) Subject: [Bug 2829] Look at pipe_fds in ntpd.c (initial value issue) X-Git-Tag: NTP_4_3_85~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a49da52b71e4c181609148320560661bbf69f8f1;p=thirdparty%2Fntp.git [Bug 2829] Look at pipe_fds in ntpd.c (initial value issue) bk: 565bd8b3r1LGsi7RSszdQpJJjJBPog --- diff --git a/ChangeLog b/ChangeLog index a787d4306..f88ea5eca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * [Sec 2956] small-step/big-step. Close the panic gate earlier. HStenn. * CID 1339955: Free allocated memory in caljulian test. HStenn. * CID 1339962: Explicitly initialize variable in caljulian test. HStenn. +* [Bug 2829] Look at pipe_fds in ntpd.c (did so. perlinger@ntp.org) * [Bug 2932] Update leapsecond file info in miscopt.html. CWoodbury, HStenn. * [Bug 2934] tests/ntpd/t-ntp_scanner.c has a magic constant wired in. HMurray * [Bug 2954] Version 4.2.8p4 crashes on startup with sig fault diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index 931ac344f..7630aee43 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -653,6 +653,9 @@ ntpdmain( # endif # ifdef HAVE_WORKING_FORK + /* make sure the FDs are initialised */ + pipe_fds[0] = -1; + pipe_fds[1] = -1; do { /* 'loop' once */ if (!HAVE_OPT( WAIT_SYNC )) break;