[Git][NTPsec/ntpsec][master] Partial fix for ntpmon crash

Ian Bruene gitlab at mg.gitlab.com
Mon Jun 19 19:10:39 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
a58eb322 by Ian Bruene at 2017-06-19T13:42:46-05:00
Partial fix for ntpmon crash

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -740,7 +740,10 @@ class PeerSummary:
 
         now = time.time()
 
-        for (name, (value, rawvalue)) in variables.items():
+        for item in variables.items():
+            if len(item) == 0:
+                continue
+            (name, (value, rawvalue)) = item
             if name in ("srcadr", "peeradr"):
                 srcadr = value
             elif name == "srchost":



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a58eb322c08bf92d1e15edefb50a14fc1b41dcb7
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/20170619/7d99d427/attachment.html>


More information about the vc mailing list