]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2829] Look at pipe_fds in ntpd.c (initial value issue)
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 30 Nov 2015 05:03:47 +0000 (06:03 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 30 Nov 2015 05:03:47 +0000 (06:03 +0100)
bk: 565bd8b3r1LGsi7RSszdQpJJjJBPog

ChangeLog
ntpd/ntpd.c

index a787d4306b28c0d33452f9df3df4f4183874717b..f88ea5ecae8cadc99381f825b9d5395253b3f446 100644 (file)
--- 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
index 931ac344f4d61f890b81d6860e228944e882a84c..7630aee43bdaa83df1076c91681e8a302b4ba6e9 100644 (file)
@@ -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;