[Git][NTPsec/ntpsec][master] Address GitLab issue #407: ntpdig/ntptime fails against some servers

Eric S. Raymond gitlab at mg.gitlab.com
Tue Nov 7 03:35:45 UTC 2017


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


Commits:
4d8d801c by Eric S. Raymond at 2017-11-06T22:35:33-05:00
Address GitLab issue #407: ntpdig/ntptime fails against some servers

Fix due to Richard Laager.

- - - - -


1 changed file:

- ntpclients/ntpdig


Changes:

=====================================
ntpclients/ntpdig
=====================================
--- a/ntpclients/ntpdig
+++ b/ntpclients/ntpdig
@@ -427,7 +427,8 @@ if __name__ == '__main__':
                       % (hexstamp(pkt.t1()), hexstamp(pkt.t2())))
                 print("xmt t3: %s dst t4: %s"
                       % (hexstamp(pkt.t3()), hexstamp(pkt.t4())))
-                pkt.posixize()
+            pkt.posixize()
+            if debug:
                 print("org t1: %f rec t2: %f" % (pkt.t1(), pkt.t2()))
                 print("xmt t3: %f dst t4: %f" % (pkt.t3(), pkt.t4()))
                 print("rec-org t21: %f  xmt-dst t34: %f"



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4d8d801c3829ca2dad287c502c3aef3cb5a736ef
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/20171107/333165cf/attachment.html>


More information about the vc mailing list