mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix off-by-one bug
This commit is contained in:
parent
3bb6062ede
commit
d608b26eb5
1 changed files with 1 additions and 1 deletions
|
|
@ -1031,7 +1031,7 @@ function negotiate_v1(smb, overrides)
|
|||
smb.server_guid, pos = string.unpack("<c16", data, pos)
|
||||
|
||||
-- do we have a security blob?
|
||||
if ( #data - pos > 0 ) then
|
||||
if ( #data - pos + 1 > 0 ) then
|
||||
smb.security_blob = data:sub(pos)
|
||||
pos = #data + 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue