mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:31:35 +08:00
Use the correct test order. Close #3513
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ end
|
||||
function record_read(buffer, i)
|
||||
local i, h = read_header(buffer, i)
|
||||
|
||||
if #buffer - i + 1 < h.record_length or not h then
|
||||
if not h or #buffer - i + 1 < h.record_length then
|
||||
return i, nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user