Module Name: src Committed By: ginsbach Date: Sat Aug 12 00:43:25 UTC 2017
Modified Files: src/external/bsd/libpcap/dist: gencode.c Log Message: 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. XXX: pullup-8 To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 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.