mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +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:
@@ -403,8 +403,7 @@ function unbindRequest( socket )
|
||||
encoder:registerTagEncoders(tagEncoder)
|
||||
|
||||
ldapMessageId = ldapMessageId +1
|
||||
ldapMsg = encode( ldapMessageId )
|
||||
ldapMsg = ldapMsg .. encodeLDAPOp( APPNO.UnbindRequest, false, nil)
|
||||
ldapMsg = encode( ldapMessageId ) .. encodeLDAPOp( APPNO.UnbindRequest, false, nil)
|
||||
packet = encoder:encodeSeq( ldapMsg )
|
||||
try( socket:send( packet ) )
|
||||
return true, ""
|
||||
|
||||
Reference in New Issue
Block a user