mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fixed a bug where the script would crash if the error code could not be
determined properly.
This commit is contained in:
parent
df3b01e5d8
commit
bf3f668223
1 changed files with 5 additions and 1 deletions
|
|
@ -112,7 +112,11 @@ local function needsPassword(host, port)
|
|||
if (code == 464) then
|
||||
return true
|
||||
end
|
||||
return false, ("Failed to check password requirements, unknown code (%d)"):format(code)
|
||||
if ( code ) then
|
||||
return false, ("Failed to check password requirements, unknown code (%d)"):format(code)
|
||||
else
|
||||
return false, "Failed to check password requirements"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue