From 5f8966157c70a13630c5d72f80acd89bf2856f44 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Tue, 29 Dec 2015 18:37:13 +0800 Subject: [PATCH] syntax error (wrong variable "reliable" ) wrong variable "reliable" in function parse_unreliable. It will be an Lua Error With > Lua Error [string "C:\Users\cfc4n\AppData\Roaming\Wireshark\plugins\enet.lua"]:373: expired TreeItem --- utils/wireshark/enet.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/wireshark/enet.lua b/utils/wireshark/enet.lua index 4e2b30b7..99d6054c 100644 --- a/utils/wireshark/enet.lua +++ b/utils/wireshark/enet.lua @@ -489,7 +489,7 @@ function parse_unreliable(tvbuf, tree, pktinfo) unreliable:add(pf_unreliable_seqnum, tvbuf:range(0, 2)) unreliable:add(pf_payload_length, tvbuf:range(2, 2)) - decode_payload(tvbuf:range(4), reliable, pktinfo) + decode_payload(tvbuf:range(4), unreliable, pktinfo) end function parse_fragment(tvbuf, tree, pktinfo) @@ -645,4 +645,4 @@ function heur_dissect_enet(tvbuf, pktinfo, root) end -- register the heuristic for udp only: -enet_proto:register_heuristic("udp", heur_dissect_enet) \ No newline at end of file +enet_proto:register_heuristic("udp", heur_dissect_enet)