Skip to content

Commit

Permalink
version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickid2018 committed Sep 26, 2024
1 parent 8d07d1c commit 254f66f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions protocol/schema/schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ DISSECT_PROTOCOL(array) {
}

if (tree)
tree = proto_tree_add_subtree_format(tree, tvb, offset, 0, ett_mc, NULL, "%s (%d entries)", name, parsed_count);
tree = proto_tree_add_subtree_format(
tree, tvb, offset, 0, ett_mc, NULL, "%s (%ld entries)", name, parsed_count
);
for (int i = 0; i < parsed_count; i++) {
gchar *name_format = g_strdup_printf("%s[%d]", name, i);
int32_t len = sub_dissector->dissect_protocol(
Expand Down Expand Up @@ -437,7 +439,8 @@ DISSECT_PROTOCOL(mapper) {
} else {
gchar *search_key = wmem_map_lookup(dissector->dissect_arguments, "v");
saved_value = wmem_map_lookup(packet_saves, search_key);
if (saved_value == NULL) return add_invalid_data(tree, tvb, offset, name, "No value found, protocol has error?");
if (saved_value == NULL)
return add_invalid_data(tree, tvb, offset, name, "No value found, protocol has error?");
len = 0;
}
if (!saved_value)
Expand Down

0 comments on commit 254f66f

Please sign in to comment.