aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorThomas Winter <Thomas.Winter@alliedtelesis.co.nz>2023-08-21 10:56:55 +1200
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-09-12 13:12:14 +0200
commit1e9517ab74678e06d3ca607dd30d4ccaf8835864 (patch)
treeaba0268c1ec62a4ceb0414761895d2bd058f526b /packages
parent1bf7e5face91e0fb103ac19dcacab65738e112be (diff)
tftp: rework request checking to account for options
Read and write requests were not handling options. The existing code inspecting request messages assumed that the string before the end of the payload was the mode and that the filename length depended on the mode length. However the first two strings are the filename and mode which can be followed by any number of option strings. Rework the checking of the filename and mode to just search the first two strings which should always exist. Any options after that are ignored. Absence of the filename or mode is now excludes the TFTP protocol. Absence of the filename no longer is considered malformed packet because it can match other protocols falsely.
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions