[Git][NTPsec/ntpsec][master] Possible fix for ntpq crash

Eric S. Raymond gitlab at mg.gitlab.com
Thu May 25 16:00:47 UTC 2017


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


Commits:
4191f2d7 by Ian Bruene at 2017-05-25T10:54:19-05:00
Possible fix for ntpq crash

ntpq crashes when trying to display info for a GPS on NTP classic
This *may* fix the problem, but is a bit of a hack, and one I can't test

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -844,6 +844,8 @@ class PeerSummary:
                 clock_name = srcadr
         else:
             clock_name = srchost
+        if clock_name is None:
+            clock_name = ""
         if self.wideremote and len(clock_name) > self.namewidth:
             line += ("%c%s\n" % (c, clock_name))
             line += (" " * (self.namewidth + 2))



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4191f2d73df1050d08a4af7cea00bc4405476c3f
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/20170525/056fd2bc/attachment.html>


More information about the vc mailing list