mirror of
https://github.com/nmap/nmap.git
synced 2026-11-22 23:50:56 +00:00
Use the correct test order. Close #3513
This commit is contained in:
parent
b218bfc230
commit
843315b8f5
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ end
|
||||||
function record_read(buffer, i)
|
function record_read(buffer, i)
|
||||||
local i, h = read_header(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
|
return i, nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue