mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Removes redundant error check
This commit is contained in:
parent
0500b2ce42
commit
9e77964022
1 changed files with 0 additions and 6 deletions
|
|
@ -1703,12 +1703,6 @@ PreLoginPacket =
|
|||
optionPos, optionLength, pos = (">I2I2"):unpack(bytes, pos)
|
||||
|
||||
optionPos = optionPos + 1 -- convert from 0-based index to 1-based index
|
||||
if ( (optionPos + optionLength) > (#bytes + 1) ) then
|
||||
stdnse.debug2("%s: Pre-login response: pos+len for option type %s is beyond end of data.", "MSSQL", optionType )
|
||||
stdnse.debug2("%s: (optionPos: %s) (optionLength: %s)", "MSSQL", optionPos, optionLength )
|
||||
return false, "Invalid pre-login response"
|
||||
end
|
||||
|
||||
|
||||
if ( optionLength ~= expectedOptionLength and expectedOptionLength ~= -1 ) then
|
||||
stdnse.debug2("%s: Option data is incorrect size in pre-login response. ", "MSSQL" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue