[Git][NTPsec/ntpsec][master] Address GitLab issue #420: NTPsec gets bad responses from Amazon NTP servers

Eric S. Raymond gitlab at mg.gitlab.com
Mon Dec 4 16:42:30 UTC 2017


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


Commits:
af86651f by Eric S. Raymond at 2017-12-04T11:42:22-05:00
Address GitLab issue #420: NTPsec gets bad responses from Amazon NTP servers

Fix due to Miroslav Lichvar.

Note: Zeroing this member instead would conform to a draft RFC on data
minimization now in process.  A future direction, but we want to
verify that we've restored expected behavior first.

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
--- a/ntpd/ntp_proto.c
+++ b/ntpd/ntp_proto.c
@@ -2188,7 +2188,7 @@ peer_xmit(
 	xpkt.rootdelay = HTONS_FP(DTOUFP(sys_rootdelay));
 	xpkt.rootdisp =	 HTONS_FP(DTOUFP(sys_rootdisp));
 	xpkt.reftime = htonl_fp(sys_reftime);
-	xpkt.org = htonl_fp(peer->rec);
+	xpkt.org = htonl_fp(peer->xmt);
 	xpkt.rec = htonl_fp(peer->dst);
 
 	/*



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/af86651f00d59e3d16a9fcece725138ba7f7f367

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/af86651f00d59e3d16a9fcece725138ba7f7f367
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171204/92b52bbd/attachment.html>


More information about the vc mailing list