]> The Tcpdump Group git mirrors - libpcap/commit
Clean up allocation of some lists.
authorGuy Harris <[email protected]>
Sun, 27 Sep 2020 17:32:40 +0000 (10:32 -0700)
committerGuy Harris <[email protected]>
Sun, 27 Sep 2020 17:32:40 +0000 (10:32 -0700)
commit2d3a47d5386d11c6e6c141afd50bdb56e2b087ce
treeb17fc2487da6b5ea9e1e9f8bc8abdd9889d09b6a
parentde155ae5b74aeae3327d8b60d1be203d02f765c1
Clean up allocation of some lists.

Always heck wehther the allocation succeeds, and fail if it doesn't.

Set the count of elements of the list only if the list was successfully
allocated.  For stylistic consistency, also seet it after we've set all
the elements of the list.
pcap-airpcap.c
pcap-bpf.c
pcap-dag.c
pcap-linux.c
pcap-snf.c