[Git][NTPsec/ntpsec][master] Revert "Address GitLab issue #113: minpoll 0 maxpoll 0 -- broken"

Eric S. Raymond gitlab at mg.gitlab.com
Tue Sep 13 19:46:16 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
84e7748c by Eric S. Raymond at 2016-09-13T15:45:38-04:00
Revert "Address GitLab issue #113: minpoll 0 maxpoll 0 -- broken"

The fix failed.  Time to reexamine.

- - - - -


1 changed file:

- ntpd/ntp_peer.c


Changes:

=====================================
ntpd/ntp_peer.c
=====================================
--- a/ntpd/ntp_peer.c
+++ b/ntpd/ntp_peer.c
@@ -770,11 +770,11 @@ newpeer(
 	 * minpoll is clamped not greater than maxpoll.
 	 */
 	if (minpoll == 0)
-		peer->minpoll = NTP_MINPOLL;
+		peer->minpoll = NTP_MINDPOLL;
 	else
 		peer->minpoll = min(minpoll, NTP_MAXPOLL);
 	if (maxpoll == 0)
-		peer->maxpoll = NTP_MAXPOLL;
+		peer->maxpoll = NTP_MAXDPOLL;
 	else
 		peer->maxpoll = max(maxpoll, NTP_MINPOLL);
 	if (peer->minpoll > peer->maxpoll)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/84e7748ce703700f65fe2e923bf2420c0d0e0917
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160913/b4bdf511/attachment.html>


More information about the vc mailing list