aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2022-09-20 07:32:41 -0400
committerAndersBroman <a.broman58@gmail.com>2023-01-04 07:39:28 +0000
commitc96a629c245be3c9faa60edcd1a37d4030975683 (patch)
tree32bacfeeae9e1f42bbedf648f3ddd3b8552407f4 /epan/wslua
parent8043acd767bc576a0a299b04a63cc996619e449f (diff)
Support `FT_CHAR` in Lua `TreeItem_add_item_any()`
Treat a `FT_CHAR` field like a `FT_UINT*` field, the same as Wireshark's `proto_tree_add_item()` does. Closes #18353
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/wslua/wslua_tree.c b/epan/wslua/wslua_tree.c
index ddc583fe5f..88c1922843 100644
--- a/epan/wslua/wslua_tree.c
+++ b/epan/wslua/wslua_tree.c
@@ -359,6 +359,7 @@ static int TreeItem_add_item_any(lua_State *L, gboolean little_endian) {
item = proto_tree_add_boolean(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,val);
}
break;
+ case FT_CHAR:
case FT_UINT8:
case FT_UINT16:
case FT_UINT24: