Skip to content
Snippets Groups Projects
Commit 85ea42be authored by Phil's avatar Phil
Browse files

Fixed StreamSocket that missed [e28139770a3a] API change

parent 0c1b681f
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ class StreamSocket(SimpleSocket): ...@@ -88,7 +88,7 @@ class StreamSocket(SimpleSocket):
if x == 0: if x == 0:
raise socket.error((100,"Underlying stream socket tore down")) raise socket.error((100,"Underlying stream socket tore down"))
pkt = self.basecls(pkt) pkt = self.basecls(pkt)
pad = pkt[Padding] pad = pkt.getlayer(Padding)
if pad is not None and pad.underlayer is not None: if pad is not None and pad.underlayer is not None:
del(pad.underlayer.payload) del(pad.underlayer.payload)
while pad is not None and not isinstance(pad, NoPayload): while pad is not None and not isinstance(pad, NoPayload):
......
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