Fixed a simple bad gameplay in which I attempt to close

an already closed SMB session.
This commit is contained in:
drazen 2010-06-12 21:45:16 +00:00
parent 24807128d2
commit 0f4d199b1e

View file

@ -441,13 +441,13 @@ function check_ms06_025(host)
stdnse.print_debug(
3,
"check_ms06_025: RRAS_SubmitRequest failed")
msrpc.stop_smb(smbstate)
if(sr_result == "NT_STATUS_PIPE_BROKEN") then
return true, VULNERABLE
else
return true, PATCHED
end
else
msrpc.stop_smb(smbstate)
return true, PATHED
end
end