From 7c62b3472627f4bfe85e359d80d2b9eff2588ce7 Mon Sep 17 00:00:00 2001 From: "Michael P. Soulier" Date: Mon, 18 Apr 2022 10:47:13 -0400 Subject: Removing error response if error received during RRQ or WRQ state. [106] --- tftpy/TftpStates.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py index f6b4b48..dd217b6 100644 --- a/tftpy/TftpStates.py +++ b/tftpy/TftpStates.py @@ -562,7 +562,6 @@ class TftpStateSentWRQ(TftpState): return self elif isinstance(pkt, TftpPacketERR): - self.sendError(TftpErrors.IllegalTftpOp) raise TftpException("Received ERR from server: %s" % pkt) elif isinstance(pkt, TftpPacketRRQ): @@ -627,7 +626,6 @@ class TftpStateSentRRQ(TftpState): raise TftpException("Received WRQ from server while in download") elif isinstance(pkt, TftpPacketERR): - self.sendError(TftpErrors.IllegalTftpOp) log.debug("Received ERR packet: %s", pkt) if pkt.errorcode == TftpErrors.FileNotFound: raise TftpFileNotFoundError("File not found") -- cgit v1.2.1