]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: lwip: tftp: Fix filename handling
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 5 Dec 2025 17:28:36 +0000 (17:28 +0000)
committerJerome Forissier <jerome.forissier@linaro.org>
Thu, 18 Dec 2025 15:27:15 +0000 (16:27 +0100)
commit8910efa71b8bab88b0ca81b681b5842fd25b1000
treefb7ec02b204b3025cc639f78c0a5b1815ebbb515
parent47b50fb1125c539d80ed3e7f739c02c6486e1b52
net: lwip: tftp: Fix filename handling

The code to choose the filename to use does not cope with no name set at
all. Firstly the test for a name in net_boot_file_name tests the pointer
rather than the string it points to. Secondly the cleanup on exit in
this case attempts to free a global variable. Fix both issues.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
net/lwip/tftp.c