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:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user