[Git][NTPsec/ntpsec][master] Changed incorrect if to elif

Ian Bruene gitlab at mg.gitlab.com
Sun Aug 27 16:26:35 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
218a4ba1 by Ian Bruene at 2017-08-27T11:26:11-05:00
Changed incorrect if to elif

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -446,7 +446,7 @@ class SyncPacket(Packet):
             payload = payload[8+flen:]
         if len(payload) == 4:    # Crypto-NAK
             self.mac = payload
-        if len(payload) == 12:   # DES
+        elif len(payload) == 12:   # DES
             raise SyncException("Unsupported DES authentication")
         elif len(payload) in (8, 16):
             raise SyncException("Packet is a runt")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/218a4ba14de87eeb6223954c35392a31152ab4fe

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/218a4ba14de87eeb6223954c35392a31152ab4fe
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/9aaf2050/attachment.html>


More information about the vc mailing list