]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Make MAXZEROREADS 1 so that the first zero-length read causes code to break and go...
authorDanny Mayer <mayer@ntp.org>
Wed, 16 Feb 2005 03:56:40 +0000 (22:56 -0500)
committerDanny Mayer <mayer@ntp.org>
Wed, 16 Feb 2005 03:56:40 +0000 (22:56 -0500)
bk: 4212c478954BoxfecTDwInC_yZ2Zew

ntpd/ntp_io.c

index 48e0ff7ff979485e9ca4a23c78c539e208e034dc..78bd704984793bdebcea889c0043869a9f8c46f1 100644 (file)
@@ -1833,7 +1833,7 @@ input_handler(
  * Define the maximum number of 0 byte consecutive reads
  * allowed before we declare it done
  */
-#define MAXZEROREADS 20
+#define MAXZEROREADS 1
 
        int totzeroreads;
        int buflen;