From 0066c8eefa3703feb2839b949182dd7692638e7e Mon Sep 17 00:00:00 2001 From: paulino Date: Mon, 5 Aug 2019 20:00:00 +0000 Subject: [PATCH] Removes protocol version from associate() as it is not used in that function --- nselib/dicom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/dicom.lua b/nselib/dicom.lua index 898ba9a88..f2254cb4b 100644 --- a/nselib/dicom.lua +++ b/nselib/dicom.lua @@ -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