summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libstand/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c
index 3b48173..0f16026 100644
--- a/lib/libstand/tftp.c
+++ b/lib/libstand/tftp.c
@@ -119,7 +119,7 @@ recvtftp(d, pkt, len, tleft)
len = readudp(d, pkt, len, tleft);
- if (len < 8)
+ if (len < 4)
return (-1);
t = (struct tftphdr *) pkt;
OpenPOWER on IntegriCloud