1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00

Correct an error in the fix for #1211

This commit is contained in:
dmiller
2018-05-15 17:00:59 +00:00
parent 670e24ddb7
commit f973b4b9f4

View File

@@ -206,7 +206,7 @@ bdecode = function(buf)
pos = pos+1
-- trailing whitespace
elseif string.match(buf, "%s*$", pos) then
elseif string.match(buf, "^%s*$", pos) then
pos = len+1
else
return nil, "Unknown type found.", pos