mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Fix off-by-one bug when parsing MySQL EOF packet. Fixes #2128
This commit is contained in:
@@ -384,7 +384,7 @@ function decodeQueryResponse( socket )
|
||||
-- Is this the EOF packet?
|
||||
if b == EOF_MARKER then
|
||||
-- we don't want the EOF Packet included
|
||||
block_end = pos - HEADER_SIZE
|
||||
block_end = pos - HEADER_SIZE - 1
|
||||
pos = pos + header.len
|
||||
break
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user