Skip to content

Commit

Permalink
Wireshark dissector: Made sure var 'pos' was only assigned locally to…
Browse files Browse the repository at this point in the history
… function (#14027)
  • Loading branch information
ZenonSeth committed Nov 23, 2023
1 parent 61db32b commit 6783734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/wireshark/minetest.lua
Expand Up @@ -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()
Expand Down

0 comments on commit 6783734

Please sign in to comment.