[Git][NTPsec/ntpsec][master] Fixed type bug in packet.py

Gary E. Miller gitlab at mg.gitlab.com
Wed May 10 18:37:44 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
20896859 by Ian Bruene at 2017-05-10T13:24:41-05:00
Fixed type bug in packet.py

packet.Authenticator.control attempted to cat a pair of tuples together, but
the first tuple was malformed: missing the trailing comma of a single
element tuple.

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1664,7 +1664,7 @@ class Authenticator:
         "Get a keyid/passwd pair that is trusted on localhost"
         if keyid is not None:
             if keyid in self.passwords:
-                return (keyid) + self.passwords[keyid]
+                return (keyid,) + self.passwords[keyid]
             else:
                 return (keyid, None, None)
         for line in open("/etc/ntp.conf"):



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/208968593fc41276bc947feb5bb934d6e84e482b
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/634dfa05/attachment.html>


More information about the vc mailing list