]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed compiler warning
authorCarter Waxman <cwaxman@cisco.com>
Thu, 21 Apr 2016 16:18:46 +0000 (12:18 -0400)
committerCarter Waxman <cwaxman@cisco.com>
Thu, 21 Apr 2016 16:18:46 +0000 (12:18 -0400)
src/network_inspectors/packet_capture/capture_module.cc
src/network_inspectors/packet_capture/packet_capture.cc

index 6e40fe123f177767f57b70f617a4b00091f0a081..66f0d5bc754034ced2825ecdca2bdfd2daaa3341 100644 (file)
@@ -38,7 +38,7 @@ CaptureModule::CaptureModule() :
 ProfileStats* CaptureModule::get_profile() const
 { return &cap_prof_stats; }
 
-bool CaptureModule::set(const char*, Value& v, SnortConfig*)
+bool CaptureModule::set(const char*, Value&, SnortConfig*)
 {
     return true;
 }
index 5983183508f6cd013541dfad33b1feb71b8f44b9..34368bed20c10c6c652cef09fecca679cee046d7 100644 (file)
@@ -171,6 +171,7 @@ void PacketCapture::write_packet(Packet* p)
     pkth.len = p->pkth->pktlen;
     pkth.ts = p->pkth->ts;
     pcap_dump((unsigned char*)dumper, &pkth, p->pkt);
+    pcap_dump_flush(dumper);
 }
 
 //-------------------------------------------------------------------------