mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Fix format string argument mismatches
Cases where the format string does not contain any placeholders, but values are given anyway. Cases where string.format is used without any placeholders or arguments.
This commit is contained in:
@@ -374,8 +374,7 @@ Comm = {
|
||||
local tmp
|
||||
status, tmp = self:GetAdditionalBytes( data, pos, HEADER_LEN - ( data:len() - pos ) )
|
||||
if not status then
|
||||
stdnse.debug4(
|
||||
string.format("Comm.DecodeHeader: failed to call GetAdditionalBytes"))
|
||||
stdnse.debug4("Comm.DecodeHeader: failed to call GetAdditionalBytes")
|
||||
return -1, nil
|
||||
end
|
||||
data = data .. tmp
|
||||
@@ -394,8 +393,7 @@ Comm = {
|
||||
if header.verifier.length - 8 > 0 then
|
||||
status, data = self:GetAdditionalBytes( data, pos, header.verifier.length - 8 )
|
||||
if not status then
|
||||
stdnse.debug4(
|
||||
string.format("Comm.DecodeHeader: failed to call GetAdditionalBytes"))
|
||||
stdnse.debug4("Comm.DecodeHeader: failed to call GetAdditionalBytes")
|
||||
return -1, nil
|
||||
end
|
||||
pos, header.verifier.data = bin.unpack("A" .. header.verifier.length - 8, data, pos )
|
||||
|
||||
Reference in New Issue
Block a user