Skip to content
Browse files

Fix logic bug introduced in last commit

  • Loading branch information...
1 parent 40abc20 commit a4249c408472f9a7b539e342d38b8b1abf3d71bb @steffann committed Jan 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pylisp/packet/control/map_request.py
  2. 0 unittests/__init__.py
View
4 pylisp/packet/control/map_request.py
@@ -182,7 +182,7 @@ def from_bytes(cls, bitstream):
# Read the flags
(packet.authoritative,
- packet.map_reply is not None,
+ map_data_present,
packet.probe,
packet.smr,
packet.pitr,
@@ -221,7 +221,7 @@ def from_bytes(cls, bitstream):
packet.eid_prefixes.append(eid_prefix)
# Read the map-reply record if present
- if packet.map_reply is not None:
+ if map_data_present:
packet.map_reply = LISPMapReplyRecord.from_bytes(bitstream)
# There should be no remaining bits
View
0 unittests/__init__.py 100644 → 100755
File mode changed.

0 comments on commit a4249c4

Please sign in to comment.
Something went wrong with that request. Please try again.