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