1
0
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:
dmiller
2017-02-14 03:47:49 +00:00
parent 2f104650a8
commit f20589ca09
13 changed files with 30 additions and 19 deletions

View File

@@ -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