diff options
-rw-r--r-- | networking/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 1e1105b45..af26d4c71 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -407,9 +407,9 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
407 | "blksize"); | 407 | "blksize"); |
408 | 408 | ||
409 | if (res) { | 409 | if (res) { |
410 | int foo = atoi(res); | 410 | int blksize = atoi(res); |
411 | 411 | ||
412 | if (tftp_blocksize_check(foo, | 412 | if (tftp_blocksize_check(blksize, |
413 | tftp_bufsize - 4)) { | 413 | tftp_bufsize - 4)) { |
414 | 414 | ||
415 | if (cmd_put) { | 415 | if (cmd_put) { |
@@ -419,7 +419,7 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
419 | opcode = TFTP_ACK; | 419 | opcode = TFTP_ACK; |
420 | } | 420 | } |
421 | #ifdef CONFIG_FEATURE_TFTP_DEBUG | 421 | #ifdef CONFIG_FEATURE_TFTP_DEBUG |
422 | printf("using blksize %u\n"); | 422 | printf("using blksize %u\n", blksize); |
423 | #endif | 423 | #endif |
424 | tftp_bufsize = foo + 4; | 424 | tftp_bufsize = foo + 4; |
425 | block_nr = 0; | 425 | block_nr = 0; |