[Git][NTPsec/ntpsec][master] Handle more than ten interfaces in __ordlist().

Eric S. Raymond gitlab at mg.gitlab.com
Wed May 10 14:42:56 UTC 2017


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


Commits:
7c498898 by Eric S. Raymond at 2017-05-10T10:42:43-04:00
Handle more than ten interfaces in __ordlist().

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1620,7 +1620,7 @@ Receive a nonce that can be replayed - combats source address spoofing
                      qdata=listtype, auth=True)
         stanzas = []
         for (key, value) in self.__parse_varlist().items():
-            if key[-1].isdigit() and key[-2] == '.':
+            if key[-1].isdigit() and '.' in key:
                 (stem, stanza) = key.split(".")
                 stanza = int(stanza)
                 if stanza > len(stanzas) - 1:



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7c498898cf93945dcc9e1e3754e2568a25936268
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/20170510/49b08f81/attachment.html>


More information about the vc mailing list