1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

Removed an extra unused string.format argument :)

This commit is contained in:
djalal
2011-07-11 15:33:52 +00:00
parent 66638df069
commit 36b535eba2

View File

@@ -331,23 +331,19 @@ local function check_exim(smtp_opts)
string.format("Exim version: %.02f", smtp_server.version))
if smtp_server.version > exim_heap_ver then
exim_heap_result =
string.format(" Exim (%s): NOT VULNERABLE",
heap_cve, smtp_server.version)
exim_heap_result = string.format(" Exim (%s): NOT VULNERABLE",
heap_cve)
else
exim_heap_result =
string.format(" Exim (%s): LIKELY VULNERABLE",
heap_cve, smtp_server.version)
exim_heap_result = string.format(" Exim (%s): LIKELY VULNERABLE",
heap_cve)
end
if smtp_server.version > exim_priv_ver then
exim_priv_result =
string.format(" Exim (%s): NOT VULNERABLE",
priv_cve, smtp_server.version)
exim_priv_result = string.format(" Exim (%s): NOT VULNERABLE",
priv_cve)
else
exim_priv_result =
string.format(" Exim (%s): LIKELY VULNERABLE",
priv_cve, smtp_server.version)
exim_priv_result = string.format(" Exim (%s): LIKELY VULNERABLE",
priv_cve)
end
else
@@ -418,8 +414,8 @@ local function check_exim(smtp_opts)
-- clear socket
socket:receive_lines(1)
if smtp_opts.shell_cmd then
status, response = send_recv(socket,string.format("%s\n",
smtp_opts.shell_cmd))
status, response = send_recv(socket,
string.format("%s\n", smtp_opts.shell_cmd))
if status then
exim_heap_result = exim_heap_result ..
string.format("\n Shell command '%s': %s",