mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Add an error check to giop.lua
This commit is contained in:
@@ -235,6 +235,10 @@ Packet.GIOP.reply = {
|
|||||||
pos, tmp = bin.unpack( bo .. "I", self.GIOP.data, pos )
|
pos, tmp = bin.unpack( bo .. "I", self.GIOP.data, pos )
|
||||||
elseif ( self.GIOP.version == Constants.VERSION_1_0 ) then
|
elseif ( self.GIOP.version == Constants.VERSION_1_0 ) then
|
||||||
pos, tmp = bin.unpack( bo .. "I", self.GIOP.data )
|
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
|
end
|
||||||
|
|
||||||
for i=1, tmp do
|
for i=1, tmp do
|
||||||
|
|||||||
Reference in New Issue
Block a user