1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Fix logic error with parentheses. Fixes #1544

This commit is contained in:
dmiller
2019-04-13 21:42:55 +00:00
parent 6fb1ed73a6
commit 0855eb4c0c

View File

@@ -1351,7 +1351,7 @@ local function start_session_extended(smb, log_errors, overrides)
end
else
if ( sp_nego ) then
if ( smb['domain'] or smb['server'] and ( not(domain) or #domain == 0 ) ) then
if (smb['domain'] or smb['server']) and (not domain or #domain == 0) then
domain = smb['domain'] or smb['server']
end
hash_type = "ntlm"