mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 03:49:01 +00:00
String concat cleanup grab-bag
Mostly just eliminating concatenation-reassignments by chaining concatenations, reordering assignments to allow better use of bin.pack, and using tables to store intermediate results before concatenating them. Used strbuf as a quick fix in dhcp.lua. Eliminated some unused string variables in vulns.lua.
This commit is contained in:
@@ -150,8 +150,7 @@ Helper = {
|
||||
|
||||
status, data = DominoPacket:new():read( self.domsock )
|
||||
|
||||
id_data = id_data:sub(33)
|
||||
id_data = id_data .. data:sub(11, total_len - #id_data + 11)
|
||||
id_data = id_data:sub(33) .. data:sub(11, total_len - #id_data + 11)
|
||||
|
||||
return true, id_data
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user