aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcp.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2022-04-19 21:57:42 +0200
committerGerald Combs <gerald@wireshark.org>2022-04-19 20:45:24 +0000
commit7cbb6e9a76503863e1017d8688509cef7d0648c0 (patch)
tree45d82c5d2756f4fb41e7dee3c0ea4f03d02ac65b /epan/dissectors/packet-dhcp.c
parente4c46563fb272e0b0c5a2c453f8c6564f852eaec (diff)
dissectors: init memory before use.
CID: 52571445-27
Diffstat (limited to 'epan/dissectors/packet-dhcp.c')
-rw-r--r--epan/dissectors/packet-dhcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dhcp.c b/epan/dissectors/packet-dhcp.c
index 5216b29311..954618a6d9 100644
--- a/epan/dissectors/packet-dhcp.c
+++ b/epan/dissectors/packet-dhcp.c
@@ -7288,6 +7288,7 @@ static void dhcp_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (opt53_text[i].strptr)
{