mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Replace some string.char and bin.pack calls with literals
This commit is contained in:
@@ -351,7 +351,7 @@ function decodeQueryResponse( socket )
|
||||
rs.header = data:sub( 1, HEADER_SIZE + header.len )
|
||||
|
||||
-- abort on MySQL error
|
||||
if rs.header:sub(HEADER_SIZE + 1, HEADER_SIZE + 1) == string.char(0xFF) then
|
||||
if rs.header:sub(HEADER_SIZE + 1, HEADER_SIZE + 1) == "\xFF" then
|
||||
-- is this a 4.0 or 4.1 error message
|
||||
if rs.header:find("#") then
|
||||
return false, rs.header:sub(HEADER_SIZE+10)
|
||||
|
||||
Reference in New Issue
Block a user