"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nselib/mysql.lua" between
nmap-7.90.tgz and nmap-7.91.tgz

About: Nmap ("Network Mapper") is a utility for network exploration or security auditing (port scanner).

mysql.lua  (nmap-7.90.tgz):mysql.lua  (nmap-7.91.tgz)
skipping to change at line 384 skipping to change at line 384
if data:len() - pos < header.len - 1 then if data:len() - pos < header.len - 1 then
data = data .. try( socket:receive_bytes( header.len - ( data:len() - po s ) ) ) data = data .. try( socket:receive_bytes( header.len - ( data:len() - po s ) ) )
end end
if header.len > 0 then if header.len > 0 then
local b = string.unpack("B", data, pos ) local b = string.unpack("B", data, pos )
-- Is this the EOF packet? -- Is this the EOF packet?
if b == EOF_MARKER then if b == EOF_MARKER then
-- we don't want the EOF Packet included -- we don't want the EOF Packet included
block_end = pos - HEADER_SIZE block_end = pos - HEADER_SIZE - 1
pos = pos + header.len pos = pos + header.len
break break
end end
end end
pos = pos + header.len pos = pos + header.len
end end
blocks[i] = data:sub( block_start, block_end ) blocks[i] = data:sub( block_start, block_end )
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)