diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-12 20:35:44 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-01-13 04:36:24 +0000 |
commit | f90eeb1775b2201fa14d8c8378603325daa89cd2 (patch) | |
tree | 95b6d9b2adbc9ea5020a05026f35638a5b27f783 /tshark.c | |
parent | b204ff4846fe84b7789893c6b1d9afbdecac5b5d (diff) |
When allocating address structures, use wmem_new0().
For structures used as the data in an address, use wmem_new(), so that
structure padding is zeroed out; the comparison code for addresses
compares all bytes of the structure for addresses that are structures,
and the hashing code for hash tables using addresses as keys hash all
the bytes, so we have to make sure that, for addresses that are the
same, *all* bytes are the same.
Change-Id: I995fd26cc2f20edb5a599f95562b720561708e57
Reviewed-on: https://code.wireshark.org/review/6517
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
0 files changed, 0 insertions, 0 deletions