diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2010-01-18 20:53:20 +0000 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2010-01-18 17:24:38 -0500 |
commit | 0579ddc834b1ae9e52e930560a75c624cd8f36c2 (patch) | |
tree | e5845c3dd6520b9e2ad2805362e5bae7957f2477 /src/net/udp/tftp.c | |
parent | c124f6360dea456d73acb911e12df6e2c26937c1 (diff) | |
download | ipxe-0579ddc834b1ae9e52e930560a75c624cd8f36c2.tar.gz |
[tftp] Abort requests with error code 0
There is no defined error code for aborting a request but 0 is commonly
used. This patch switches the abort request error code from
TFTP_ERR_UNKNOWN_TID (5) to 0.
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/net/udp/tftp.c')
-rw-r--r-- | src/net/udp/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index e8d73abd..3de2fb9b 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -773,7 +773,7 @@ static int tftp_rx_oack ( struct tftp_request *tftp, void *buf, size_t len ) { /* Abort request if only trying to determine file size */ if ( tftp->flags & TFTP_FL_SIZEONLY ) { rc = 0; - tftp_send_error ( tftp, TFTP_ERR_UNKNOWN_TID, "TFTP Aborted" ); + tftp_send_error ( tftp, 0, "TFTP Aborted" ); tftp_done ( tftp, rc ); return rc; } @@ -808,7 +808,7 @@ static int tftp_rx_data ( struct tftp_request *tftp, if ( tftp->flags & TFTP_FL_SIZEONLY ) { /* If we get here then server doesn't support SIZE option */ rc = -ENOTSUP; - tftp_send_error ( tftp, TFTP_ERR_UNKNOWN_TID, "TFTP Aborted" ); + tftp_send_error ( tftp, 0, "TFTP Aborted" ); goto done; } |