]> The Tcpdump Group git mirrors - libpcap/commitdiff
pcap-rpcap: fix a comment. [skip ci]
authorGuy Harris <[email protected]>
Tue, 8 Mar 2022 06:47:51 +0000 (22:47 -0800)
committerGuy Harris <[email protected]>
Wed, 16 Mar 2022 04:53:47 +0000 (21:53 -0700)
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)

pcap-rpcap.c

index 66c43559669b43953b4d12e5c8517364fe70ea2d..889ade32f69233172ebfd5dff572ca0c49278667 100644 (file)
@@ -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;
 
        /*