This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve a tcpdump error message, free device list before exiting.
If an adapter index that's greater than the number of adapters is specified by the user, mention the incorrect adapter index, and the total number of adapters (the former being greater than the latter), in the error message. Free the adapter list before reporting the error and exiting, to suppress complaints from leak detectots (not that the memory spends much time leaked, as exiting destroys the entire address space, but...). Fixes issue #1208. (cherry picked from commit 11e8f0a)
- Loading branch information