From: Guy Harris Date: Tue, 8 Mar 2022 06:47:51 +0000 (-0800) Subject: pcap-rpcap: fix a comment. [skip ci] X-Git-Tag: libpcap-1.10.2~209 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/c51ecb07f2e10b7823b8ca6c86e101ef7244efe9 pcap-rpcap: fix a comment. [skip ci] Fix a typo (pr->priv should be p->priv), and note that the rationale for clearing out pr->data_ssl no longer appears to be true. (cherry picked from commit ef7f81e99125bfbbb6732f56d441bddadaaad885) --- diff --git a/pcap-rpcap.c b/pcap-rpcap.c index 66c43559..889ade32 100644 --- a/pcap-rpcap.c +++ b/pcap-rpcap.c @@ -1104,7 +1104,9 @@ static int pcap_startcapture_remote(pcap_t *fp) uint32 server_sockbufsize; // Take the opportunity to clear pr->data_ssl before any goto error, - // as it seems pr->priv is not zeroed after its malloced. + // as it seems p->priv is not zeroed after its malloced. + // XXX - it now should be, as it's allocated by pcap_alloc_pcap_t(), + // which does a calloc(). pr->data_ssl = NULL; /*