mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix spelling of "endianness". Closes #2850
This commit is contained in:
@@ -168,7 +168,7 @@ function read_db2_packet(socket)
|
|||||||
local buf
|
local buf
|
||||||
|
|
||||||
local DATA_LENGTH_OFFSET = 38
|
local DATA_LENGTH_OFFSET = 38
|
||||||
local ENDIANESS_OFFSET = 23
|
local ENDIANNESS_OFFSET = 23
|
||||||
|
|
||||||
local catch = function()
|
local catch = function()
|
||||||
stdnse.debug1("ERROR communicating with DB2 server")
|
stdnse.debug1("ERROR communicating with DB2 server")
|
||||||
@@ -186,7 +186,7 @@ function read_db2_packet(socket)
|
|||||||
|
|
||||||
stdnse.debug1("Got DB2DAS packet")
|
stdnse.debug1("Got DB2DAS packet")
|
||||||
|
|
||||||
local endian = string.unpack( "c2", packet.header.raw, ENDIANESS_OFFSET )
|
local endian = string.unpack( "c2", packet.header.raw, ENDIANNESS_OFFSET )
|
||||||
|
|
||||||
if endian == "9z" then
|
if endian == "9z" then
|
||||||
packet.header.data_len = string.unpack("<I4", packet.header.raw, DATA_LENGTH_OFFSET )
|
packet.header.data_len = string.unpack("<I4", packet.header.raw, DATA_LENGTH_OFFSET )
|
||||||
|
|||||||
Reference in New Issue
Block a user