diff --git a/scapy.py b/scapy.py index 5c71fa12c78f48cb86c0095e3e71a05ca38e15d7..9bee87eb71a5a6118d326f575db0845b4e578245 100755 --- a/scapy.py +++ b/scapy.py @@ -11735,7 +11735,10 @@ class TFTP_read(Automaton): # RECEIVED @ATMT.state() def RECEIVING(self, pkt): - recvd = pkt[Raw].load + if Raw in pkt: + recvd = pkt[Raw].load + else: + recvd = "" self.res += recvd self.awaiting += 1 if len(recvd) == self.blocksize: