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

@ -42,7 +42,7 @@ portrule = shortport.portnumber(1604, "udp")
-- @return string row delimited with \n containing all published applications
function process_pa_response(response)
local pos, packet_len = bin.unpack("SS", response)
local pos, packet_len = bin.unpack("<S", response)
local app_name
local pa_list = {}