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

Removes trailing spaces in 69 files. Closes #971.

This commit is contained in:
rewanth
2017-08-23 08:52:40 +00:00
parent 1c8e232bb3
commit 6ee953a5ff
69 changed files with 409 additions and 409 deletions

View File

@@ -945,7 +945,7 @@ end
---
-- Negotiates SMBv1 connections
--
--
-- Sends the following:
-- * List of known protocols
--
@@ -1121,7 +1121,7 @@ function negotiate_protocol(smb, overrides)
status, dialect = negotiate_v1(smb, overrides)
if status then
return true
else
else
stdnse.debug1("Couldn't negotiate a SMBv1 connection:%s", dialect)
return false, string.format("Could not negotiate a connection:%s", dialect)
end
@@ -1137,7 +1137,7 @@ end
function list_dialects(host, overrides)
local smb2_dialects = {0x0202, 0x0210, 0x0300, 0x0302, 0x0311}
local supported_dialects = {}
local status, smb1_dialects
local status, smb1_dialects
local smbstate
-- Check for SMBv1 first
@@ -1146,7 +1146,7 @@ function list_dialects(host, overrides)
if(status == false) then
return false, smbstate
end
status, smb1_dialects = negotiate_v1(smbstate, overrides)
if status then --Add SMBv1 as a dialect
table.insert(supported_dialects, smb1_dialects)
@@ -1172,7 +1172,7 @@ function list_dialects(host, overrides)
--clean smb connection
stop(smbstate)
status = false
end
end
return true, supported_dialects
end