[Git][NTPsec/ntpsec][master] Address GitLab issue #199: Python3: traceback with ntpq reslist
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Dec 9 23:33:03 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
07ee64f5 by Eric S. Raymond at 2016-12-09T18:32:42-05:00
Address GitLab issue #199: Python3: traceback with ntpq reslist
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1452,7 +1452,7 @@ class Authenticator:
@staticmethod
def compute_mac(payload, keyid, keytype, passwd):
hasher = hashlib.new(keytype)
- hasher.update(passwd)
+ hasher.update(polybytes(passwd))
hasher.update(payload)
if hasher.digest_size == 0:
return None
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/07ee64f5d4e2110898fda3787cff27ea5c9f298f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161209/668b8879/attachment.html>
More information about the vc
mailing list