]> The Tcpdump Group git mirrors - libpcap/commit
In pcap_compile(), first check whether the pcap_t is activated.
authorGuy Harris <[email protected]>
Sun, 5 Feb 2017 21:13:56 +0000 (13:13 -0800)
committerGuy Harris <[email protected]>
Sun, 5 Feb 2017 21:13:56 +0000 (13:13 -0800)
commitada95c9321eab3793d485ca026cda54afca9d541
tree329e1c73addaad405e0a4feb76133c5c4728d652
parent5c23535e15d6120430de8d502f6e1146975255d5
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.
gencode.c