1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 14:09:02 +00:00

Fix off-by-one error in tn3270. Closes #1130

This commit is contained in:
dmiller
2018-02-08 18:08:54 +00:00
parent 3abbbebedd
commit c9bb431f3d

View File

@@ -323,7 +323,7 @@ Telnet = {
return (((byte1 & 0x3F) << 8) | byte2) + 1
else
-- (byte1 & 0x3F) << 6 | (byte2 & 0x3F)
return (((byte1 & 0x3F) << 6) | (byte2 & 0x3F))
return (((byte1 & 0x3F) << 6) | (byte2 & 0x3F)) + 1
end
end,