ret = ProcessSigFiles(de_ctx, sig_file, sig_stat, &good_sigs, &bad_sigs);
if (ret != 0) {
- if (de_ctx->failure_fatal == 1) {
+ if (de_ctx->failure_fatal) {
exit(EXIT_FAILURE);
}
}
strlcpy(de_ctx->config_prefix, prefix, sizeof(de_ctx->config_prefix));
}
- if (ConfGetBool("engine.init-failure-fatal", (int *)&(de_ctx->failure_fatal)) != 1) {
+ int failure_fatal = 0;
+ if (ConfGetBool("engine.init-failure-fatal", (int *)&failure_fatal) != 1) {
SCLogDebug("ConfGetBool could not load the value.");
}
+ de_ctx->failure_fatal = (failure_fatal == 1);
de_ctx->mpm_matcher = PatternMatchDefaultMatcher();
de_ctx->spm_matcher = SinglePatternMatchDefaultMatcher();
int r = SRepLoadFile(cidr_ctx, sfile);
if (r < 0){
- if (de_ctx->failure_fatal == 1) {
+ if (de_ctx->failure_fatal) {
exit(EXIT_FAILURE);
}
}