[Git][NTPsec/ntpsec][master] Adjusted parentheses in __validate_packet version test

Ian Bruene gitlab at mg.gitlab.com
Sun Aug 27 16:41:57 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
77a3a83e by Ian Bruene at 2017-08-27T11:40:16-05:00
Adjusted parentheses in __validate_packet version test

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1169,8 +1169,8 @@ class ControlSession:
         warndbg = (lambda txt, th: ntp.util.dolog(self.logfp, txt,
                                                   self.debug, th))
 
-        if ((rpkt.version() > ntp.magic.NTP_VERSION or
-             rpkt.version() < ntp.magic.NTP_OLDVERSION)):
+        if ((rpkt.version() > ntp.magic.NTP_VERSION) or
+            (rpkt.version() < ntp.magic.NTP_OLDVERSION)):
             warndbg("Fragment received with version %d\n"
                     % rpkt.version(), 1)
             return False



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/77a3a83e11f67530c5682fa51f4b29789167791b
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/20170827/9efa4d15/attachment.html>


More information about the vc mailing list