[Git][NTPsec/ntpsec][master] Address GitLab issue #170: Python3: mrulist fails

Eric S. Raymond gitlab at mg.gitlab.com
Mon Nov 28 19:11:33 UTC 2016


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


Commits:
3cc76b4d by Eric S. Raymond at 2016-11-28T14:11:18-05:00
Address GitLab issue #170: Python3: mrulist fails

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1170,7 +1170,7 @@ class ControlSession:
     def fetch_nonce(self):
         "Receive a nonce that can be replayed - combats source address spoofing"
         self.doquery(opcode=CTL_OP_REQ_NONCE)
-        if not self.response.startswith("nonce="):
+        if not self.response.startswith(polybytes("nonce=")):
             raise ControlException(SERR_BADNONCE)
         return self.response.strip()
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3cc76b4df420fc4c297002f33d402e0e5ab1d75e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161128/be8acf64/attachment.html>


More information about the vc mailing list