mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Fix an error in checking the RETAIN bit in MQTT PUBLISH packet.
This commit is contained in:
parent
d84ddbe3fd
commit
4d136359b3
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ MQTT.packet["PUBLISH"].parse = function(fhflags, buf)
|
|||
res.qos = qos
|
||||
|
||||
-- 3.3.1.3 RETAIN
|
||||
local ret = (bit.band(fhflags, 0x1) == 0x8)
|
||||
local ret = ((fhflags & 0x1) == 0x1)
|
||||
res.retain = ret
|
||||
|
||||
-- 3.3.2.1 Topic Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue