summaryrefslogtreecommitdiff
path: root/apps/netutils/tftpc/tftpc_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/netutils/tftpc/tftpc_get.c')
-rw-r--r--apps/netutils/tftpc/tftpc_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/netutils/tftpc/tftpc_get.c b/apps/netutils/tftpc/tftpc_get.c
index bfae1a3b7..b2170ec39 100644
--- a/apps/netutils/tftpc/tftpc_get.c
+++ b/apps/netutils/tftpc/tftpc_get.c
@@ -234,7 +234,7 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, bool binary)
/* Check if anything valid was received */
- if (nbytesrecvd >= 0)
+ if (nbytesrecvd > 0)
{
/* Verify the sender address and port number */