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

Add cache support for ASN1_Packet()

--HG--
branch : fix-padding-after-pull-request-18
parent 83baf33a
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ class ASN1_Packet(Packet):
self.do_init_fields(flist)
self.fields_desc = flist
def self_build(self):
if self.raw_packet_cache is not None:
return self.raw_packet_cache
return self.ASN1_root.build(self)
def do_dissect(self, x):
return self.ASN1_root.dissect(self, x)
......
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