1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-22 22:29:03 +00:00

Removes protocol version from associate() as it is not used in that function

This commit is contained in:
paulino
2019-08-05 20:00:00 +00:00
parent 645a9180ed
commit 0066c8eefa

View File

@@ -244,8 +244,8 @@ function associate(host, port, calling_aet, called_aet)
return false, string.format("Couldn't read ASSOCIATE response:%s", err)
end
local resp_type, _, resp_length, resp_version = string.unpack(">B B I4 I2", err)
stdnse.debug1("PDU Type:%d Length:%d Protocol:%d", resp_type, resp_length, resp_version)
local resp_type, _, resp_length = string.unpack(">B B I4", err)
stdnse.debug1("PDU Type:%d Length:%d", resp_type, resp_length)
if resp_type == PDU_CODES["ASSOCIATE_ACCEPT"] then
stdnse.debug1("ASSOCIATE ACCEPT message found!")
return true, dcm