Skip to content
Snippets Groups Projects
Commit 46e4ebff authored by Pierre LALET's avatar Pierre LALET
Browse files

Fix PacketListField.do_copy() to work w/ strings elements

parent 064203bb
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ class PacketListField(PacketField):
if x is None:
return None
else:
return map(lambda p:p.copy(), x)
return [p if isinstance(p, basestring) else p.copy() for p in x]
def getfield(self, pkt, s):
c = l = None
if self.length_from is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment