mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +00:00
Use explicit endianness in pack/unpack.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
-- Simple MySQL Library supporting a very limited subset of operations.
|
||||
--
|
||||
-- http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol
|
||||
-- https://dev.mysql.com/doc/internals/en/client-server-protocol.html
|
||||
--
|
||||
-- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html
|
||||
--
|
||||
@@ -522,7 +522,7 @@ function sqlQuery( socket, query )
|
||||
local packet, packet_len, pos, header
|
||||
local status, fields, field_count, rows, rs
|
||||
|
||||
packet = bin.pack("ICA", querylen, Command.Query, query )
|
||||
packet = bin.pack("<ICA", querylen, Command.Query, query )
|
||||
|
||||
--
|
||||
-- http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#Result_Set_Header_Packet
|
||||
|
||||
Reference in New Issue
Block a user