Module Name: src Committed By: snj Date: Mon Aug 14 23:56:35 UTC 2017
Modified Files: src/external/bsd/libpcap/dist [netbsd-8]: gencode.c Log Message: Pull up following revision(s) (requested by ginsbach in ticket #209): external/bsd/libpcap/dist/gencode.c: revision 1.10 PR lib/51952: Brad Harder: Apply upstream ada959c9 [From upstream tcpdump] In pcap_compile(), first check whether the pcap_t is activated. Before we allocate or otherwise set up anything, check whether the pcap_t is activated, and set the error message string and return -1 if it's not. That way, we don't go through the cleanup code in that code path - there's nothing to clean up. Fixes the issue in GitHub pull request #552. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.9.4.1 src/external/bsd/libpcap/dist/gencode.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.