From 4b9a27475efdf7d25f88e6b9937ee494f21db692 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 7 Sep 2009 16:48:26 -0700 Subject: [PATCH] handle->md.stat should be zeroed out when we initially allocated the pcap_t, but, as long as we're initializing ps_drop and ps_recv, initialize ps_ifdrop. --- pcap-dag.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pcap-dag.c b/pcap-dag.c index c8d5f0f..938ec26 100644 --- a/pcap-dag.c +++ b/pcap-dag.c @@ -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