mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +02:00
Add packet-len check
This commit is contained in:
parent
ddffa62468
commit
d620d3511f
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ function p_hfudt.dissector(buf, pinfo, tree)
|
||||||
|
|
||||||
-- make sure this isn't a STUN packet - those don't follow HFUDT format
|
-- make sure this isn't a STUN packet - those don't follow HFUDT format
|
||||||
-- if pinfo.dst == Address.ip("stun.highfidelity.io") then return end
|
-- if pinfo.dst == Address.ip("stun.highfidelity.io") then return end
|
||||||
if buf(4, 4):uint() == RFC_5389_MAGIC_COOKIE then return end
|
if buf:len() >= 8 and buf(4, 4):uint() == RFC_5389_MAGIC_COOKIE then return end
|
||||||
|
|
||||||
-- validate that the packet length is at least the minimum control packet size
|
-- validate that the packet length is at least the minimum control packet size
|
||||||
if buf:len() < 4 then return end
|
if buf:len() < 4 then return end
|
||||||
|
|
Loading…
Reference in a new issue