In case of error in pcap file reading mode, we shut the engine down hard instead of gracefully.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 426a7de5f2
commit 634b328d38

@ -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);

Loading…
Cancel
Save