]> The Tcpdump Group git mirrors - libpcap/commitdiff
handle->md.stat should be zeroed out when we initially allocated the
authorGuy Harris <[email protected]>
Mon, 7 Sep 2009 23:48:26 +0000 (16:48 -0700)
committerGuy Harris <[email protected]>
Mon, 7 Sep 2009 23:48:26 +0000 (16:48 -0700)
pcap_t, but, as long as we're initializing ps_drop and ps_recv,
initialize ps_ifdrop.

pcap-dag.c

index c8d5f0f47f9042cc372f5ff1fff5ae4abe33add5..938ec26dce45ddefc49d1d32961a020eb3c39a01 100644 (file)
@@ -803,6 +803,7 @@ static int dag_activate(pcap_t* handle)
        handle->cleanup_op = dag_platform_cleanup;
        handle->md.stat.ps_drop = 0;
        handle->md.stat.ps_recv = 0;
+       handle->md.stat.ps_ifdrop = 0;
        return 0;
 
 #ifdef HAVE_DAG_STREAMS_API