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

Eric S. Raymond gitlab at mg.gitlab.com
Tue Sep 13 12:46:28 UTC 2016


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


Commits:
3b97e76e by Eric S. Raymond at 2016-09-13T08:46:04-04:00
Address GitLab issue #113: minpoll 0 maxpoll 0 -- broken

- - - - -


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_MINDPOLL;
+		peer->minpoll = NTP_MINPOLL;
 	else
 		peer->minpoll = min(minpoll, NTP_MAXPOLL);
 	if (maxpoll == 0)
-		peer->maxpoll = NTP_MAXDPOLL;
+		peer->maxpoll = NTP_MAXPOLL;
 	else
 		peer->maxpoll = max(maxpoll, NTP_MINPOLL);
 	if (peer->minpoll > peer->maxpoll)



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


More information about the vc mailing list