From ba992765b39856fbe651b22fcb749a1f79f24b8b Mon Sep 17 00:00:00 2001 From: paulino Date: Mon, 29 May 2017 19:48:35 +0000 Subject: [PATCH] Closes smb connection properly. --- nselib/msrpc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nselib/msrpc.lua b/nselib/msrpc.lua index 3dc256d88..28690033f 100644 --- a/nselib/msrpc.lua +++ b/nselib/msrpc.lua @@ -4722,6 +4722,7 @@ function get_share_info(host, name) stdnse.debug2("Calling NetShareGetInfo with information level 1") status, netsharegetinfo_result = srvsvc_netsharegetinfo(smbstate, host.ip, name, 1) if status then + smb.stop(smbstate) return true, netsharegetinfo_result end end