1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

Add clarifying parentheses to complex boolean statements as needed.

This commit is contained in:
dmiller
2019-04-13 21:42:56 +00:00
parent 0855eb4c0c
commit 8d7a2bc004
6 changed files with 13 additions and 7 deletions

View File

@@ -414,7 +414,7 @@ Helper = {
if ( status and result.status == 401 and result.headers['www-authenticate'] ) then
local auth = self:getOption(options, "auth")
if ( not(auth) or not(auth.username) and not(auth.password) ) then
if not(auth and auth.username and auth.password) then
stdnse.debug2("No authentication information")
return status, result
end