From 1c751cf6d329d26c8a63e3b3bbd608d1528d2429 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 25 Apr 2024 17:12:27 +0000 Subject: [PATCH] Check for connected socket before continuing --- scripts/smtp-ntlm-info.nse | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/smtp-ntlm-info.nse b/scripts/smtp-ntlm-info.nse index b331870fa..c43625d94 100644 --- a/scripts/smtp-ntlm-info.nse +++ b/scripts/smtp-ntlm-info.nse @@ -114,6 +114,9 @@ action = function(host, port) socket = do_connect(host, port, domain) end end + if not socket then + return nil + end socket:send("AUTH NTLM\r\n") local status, response = socket:receive()