mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
The shortest valid TFTP packet is 4 bytes, not 8.
PR: misc/25503 Submitted by: Jim Browne <jbrowne@jbrowne.com> MFC after: 1 week
This commit is contained in:
parent
861c52f1c4
commit
dc46262eaa
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue