mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 15:39:03 +00:00
Small typo fix in rpc.lua.
This commit is contained in:
@@ -337,7 +337,7 @@ Comm = {
|
|||||||
status, tmp = self:GetAdditionalBytes( data, pos, HEADER_LEN - ( data:len() - pos ) )
|
status, tmp = self:GetAdditionalBytes( data, pos, HEADER_LEN - ( data:len() - pos ) )
|
||||||
if not status then
|
if not status then
|
||||||
stdnse.print_debug(4,
|
stdnse.print_debug(4,
|
||||||
string.format("Comm.ReceivePacket: failed to call GetAdditionalBytes"))
|
string.format("Comm.DecodeHeader: failed to call GetAdditionalBytes"))
|
||||||
return -1, nil
|
return -1, nil
|
||||||
end
|
end
|
||||||
data = data .. tmp
|
data = data .. tmp
|
||||||
@@ -357,7 +357,7 @@ Comm = {
|
|||||||
status, data = self:GetAdditionalBytes( data, pos, header.verifier.length - 8 )
|
status, data = self:GetAdditionalBytes( data, pos, header.verifier.length - 8 )
|
||||||
if not status then
|
if not status then
|
||||||
stdnse.print_debug(4,
|
stdnse.print_debug(4,
|
||||||
string.format("Comm.ReceivePacket: failed to call GetAdditionalBytes"))
|
string.format("Comm.DecodeHeader: failed to call GetAdditionalBytes"))
|
||||||
return -1, nil
|
return -1, nil
|
||||||
end
|
end
|
||||||
pos, header.verifier.data = bin.unpack("A" .. header.verifier.length - 8, data, pos )
|
pos, header.verifier.data = bin.unpack("A" .. header.verifier.length - 8, data, pos )
|
||||||
|
|||||||
Reference in New Issue
Block a user