wireshark/caputils
Guy Harris 1ac358c99d Don't close the pcap_t in get_data_link_types().
1) Its caller closes it, and closing a closed pcap_t can cause Bad
Things to happen.

2) We're trying to get an error string from it after we're closing it,
which won't work well, either.

While we're at it, don't use pcap_statustostr() if we don't have it (we
have it iff we have pcap_create()).

Change-Id: Ieded1e3ae78aea4e0970cf582e780c2846fe9dd5
Reviewed-on: https://code.wireshark.org/review/20443
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-03-07 22:09:30 +00:00
..
.editorconfig
CMakeLists.txt
Makefile.am
airpcap.h
airpcap_loader.c g_malloc -> g_malloc0 where not all struct elements are initialized or 2017-02-22 21:53:36 +00:00
airpcap_loader.h
capture-pcap-util-int.h
capture-pcap-util-unix.c g_malloc -> g_malloc0 where not all struct elements are initialized or 2017-02-22 21:53:36 +00:00
capture-pcap-util.c Don't close the pcap_t in get_data_link_types(). 2017-03-07 22:09:30 +00:00
capture-pcap-util.h
capture-wpcap.c
capture-wpcap.h
capture_ifinfo.h
capture_win_ifnames.c
capture_win_ifnames.h
capture_wpcap_packet.c
capture_wpcap_packet.h
doxygen.cfg.in
iface_monitor.c
iface_monitor.h
ws80211_utils.c
ws80211_utils.h