From: Anoop Saldanha Date: Sun, 25 Mar 2012 05:46:53 +0000 (+0530) Subject: init every new pf instance in log pcap X-Git-Tag: suricata-1.3beta1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc907414b5d6d076b369c91aa69cb73f5733617;p=thirdparty%2Fsuricata.git init every new pf instance in log pcap --- diff --git a/src/log-pcap.c b/src/log-pcap.c index 32d5664660..e3460b1a3f 100644 --- a/src/log-pcap.c +++ b/src/log-pcap.c @@ -636,6 +636,7 @@ int PcapLogOpenFileCtx(PcapLogData *pl) if (pf == NULL) { return -1; } + memset(pf, 0, sizeof(PcapFileName)); if (pl->mode == LOGMODE_SGUIL) { struct tm local_tm;