1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Replace instances of bin.pack('A', x), which is equivalent to tostring(x), and a no-op on strings

This commit is contained in:
dmiller
2015-03-03 04:48:18 +00:00
parent 03110e7e89
commit e2bfa97920
6 changed files with 11 additions and 15 deletions

View File

@@ -136,7 +136,7 @@ Request = {
local header = bin.pack("<IAI", magic, cmd, len)
-- After 2012-02-20, version messages require checksums
header = header .. bin.pack("A", checksum:sub(1,4))
header = header .. checksum:sub(1,4)
return header .. payload
end,