wiretap: fix regression, missing initialization
wtap_dump_open() allocates an empty wtap_dumper struct such that interface_data is not initialized. Fix this by adding the member back. Regression from 3aee917058fb46b2e86d750766001c4db214fc78 ("wiretap: remove unused code, drop number_of_interfaces"). Bug: 10113 Change-Id: Ia6259bf50b25d5e7aa837b0fb7396b07d5d3c72c Reviewed-on: https://code.wireshark.org/review/1672 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
3aee917058
commit
cea149aa89
@ -2008,6 +2008,7 @@ wtap_dump_init_dumper(int file_type_subtype, int encap, int snaplen, gboolean co
|
||||
descr.if_fcslen = -1;
|
||||
descr.num_stat_entries = 0; /* Number of ISB:s */
|
||||
descr.interface_statistics = NULL;
|
||||
wdh->interface_data = g_array_new(FALSE, FALSE, sizeof(wtapng_if_descr_t));
|
||||
g_array_append_val(wdh->interface_data, descr);
|
||||
}
|
||||
return wdh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user