From 2fb52b456eaae4549e97315090e5cee4d1d08b5d Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 22 Aug 2016 16:26:41 +0000 Subject: [PATCH] Add an error check to giop.lua --- nselib/giop.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nselib/giop.lua b/nselib/giop.lua index 09d349b24..8ed6363c5 100644 --- a/nselib/giop.lua +++ b/nselib/giop.lua @@ -235,6 +235,10 @@ Packet.GIOP.reply = { pos, tmp = bin.unpack( bo .. "I", self.GIOP.data, pos ) elseif ( self.GIOP.version == Constants.VERSION_1_0 ) then pos, tmp = bin.unpack( bo .. "I", self.GIOP.data ) + else + local err = ("Unknown GIOP version: %s"):format(self.GIOP.version) + stdnse.debug2("recv: %s", err) + return false, err end for i=1, tmp do