mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Fix off-by-one error in tn3270. Closes #1130
This commit is contained in:
parent
3abbbebedd
commit
c9bb431f3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue