diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-15 16:55:54 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-15 23:56:18 +0000 |
commit | 7bca9126edb97ac598007da4a6d5c187a7ea830e (patch) | |
tree | c8cb141916118644eaf8f3ae973f1181b2431334 /randpkt.c | |
parent | f518089709feba05fe8acfab76be5afc8bd97021 (diff) | |
download | wireshark-7bca9126edb97ac598007da4a6d5c187a7ea830e.tar.gz |
Don't allocate the interfaces array until we've read the SHB.
Nothing from the SHB gets stored in the interfaces array - it's filled
in from IDBs - so it doesn't need to exist when we read the first SHB,
and thus doesn't need to be freed if the attempt to read the SHB gets an
error or a "this isn't a pcap-ng file" indication.
Update a comment while we're at it.
Change-Id: Ie67edb52dcf13c974607e95e290661bf48be68ae
Reviewed-on: https://code.wireshark.org/review/4711
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'randpkt.c')
0 files changed, 0 insertions, 0 deletions