From 128c136d441688bced783c14d8af45d775bf93ca Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 20 Sep 2019 04:40:21 +0000 Subject: [PATCH] A couple code warnings in dicom.lua --- nselib/dicom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/dicom.lua b/nselib/dicom.lua index f2254cb4b..ee063b9ee 100644 --- a/nselib/dicom.lua +++ b/nselib/dicom.lua @@ -1,4 +1,4 @@ --- +--- -- DICOM library -- -- This library implements (partially) the DICOM protocol. This protocol is used to @@ -235,7 +235,7 @@ function associate(host, port, calling_aet, called_aet) if #assoc_request < MIN_SIZE_ASSOC_REQ then return false, string.format("ASSOCIATE request PDU must be at least %d bytes and we tried to send %d.", MIN_SIZE_ASSOC_REQ, #assoc_request) end - status, err = send(dcm, assoc_request) + local status, err = send(dcm, assoc_request) if status == false then return false, string.format("Couldn't send ASSOCIATE request:%s", err) end