commit 2388e4ca24ffc04deee6c151d896ed7c64da7b36
parent f98b9c5c97c6ff3d222f7e3786abdd35b07c6269
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 15 Feb 2023 20:42:12 +0000
recvfrom(-1) is not the same as recvfrom()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/tufted/tftp.lua b/pkgs/tufted/tftp.lua
@@ -320,7 +320,7 @@ function tftp:listen(rrq_generator_callback, wrq_generator_callback, hosts, port
If the request is invalid, responds to the client with error and returns `nil`
otherwise returns the parsed request.
]]
- local msg, host, port = socket:recvfrom(-1)
+ local msg, host, port = socket:recvfrom()
if msg ~= false then
local okay, xRQ = pcall(self.parse_XRQ, msg)
if not okay then