From 634b328d383f3cdb3348592db2ca34146a4301f8 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 29 Jun 2010 20:12:37 +0200 Subject: [PATCH] In case of error in pcap file reading mode, we shut the engine down hard instead of gracefully. --- src/source-pcap-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source-pcap-file.c b/src/source-pcap-file.c index c40e73454f..0575d522df 100644 --- a/src/source-pcap-file.c +++ b/src/source-pcap-file.c @@ -183,7 +183,8 @@ TmEcode ReceivePcapFile(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq, SCLogError(SC_ERR_PCAP_DISPATCH, "error code %" PRId32 " %s", r, pcap_geterr(pcap_g.pcap_handle)); - EngineStop(); + /* in the error state we just kill the engine */ + EngineKill(); SCReturnInt(TM_ECODE_FAILED); } else if (r == 0) { SCLogInfo("pcap file end of file reached (pcap err code %" PRId32 ")", r);