Wireshark dissector: Made sure var 'pos' was only assigned locally to function (#14027)

This commit is contained in:
ZenonSeth 2023-11-23 17:26:00 +00:00 committed by GitHub
parent 61db32beee
commit 6783734612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1299,6 +1299,7 @@ do
t:set_text("Minetest, Peer: " .. buffer(4,2):uint() .. ", Channel: " .. buffer(6,1):uint())
local reliability_info
local pos
if buffer(7,1):uint() == 3 then
-- Reliable message
reliability_info = "Seq=" .. buffer(8,2):uint()