]> The Tcpdump Group git mirrors - libpcap/commit
Make sure pcap_close_all() doesn't loop infinitely.
authorGuy Harris <[email protected]>
Thu, 3 Oct 2019 17:27:36 +0000 (10:27 -0700)
committerGuy Harris <[email protected]>
Thu, 3 Oct 2019 17:27:36 +0000 (10:27 -0700)
commit68a3bb061b14614a74f25d91c685e1ad16754fc1
tree5fbe105f4dcf7f18ba42d7eb667107004482858a
parent3b9b6100912f7bb1ee43f9cfb51e804765a37bd4
Make sure pcap_close_all() doesn't loop infinitely.

After it calls pcap_close(), the pcap_t that was closed must no longer
be at the head of the pcaps_to_close list.  Abort if it still is, rather
than looping indefinitely (or crashing because we're trying to close a
now-closed-and-freed pcap_t).

Reported by Charles Smith at Tangible Security.
pcap.c