maat_new error if read full config failed
This commit is contained in:
@@ -475,7 +475,14 @@ void *rule_monitor_loop(void *arg)
|
||||
if (maat_instance->deferred_load != 0) {
|
||||
log_info(maat_instance->logger, MODULE_MAAT_RULE,
|
||||
"Deferred Loading ON, updating in %s:%d", __FUNCTION__, __LINE__);
|
||||
maat_read_full_config(maat_instance);
|
||||
ret = maat_read_full_config(maat_instance);
|
||||
if (ret < 0) {
|
||||
log_error(maat_instance->logger, MODULE_MAAT_RULE,
|
||||
"[%s:%d] maat read full config failed, exit rule_monitor_loop thread.",
|
||||
__FUNCTION__, __LINE__);
|
||||
pthread_mutex_unlock(&(maat_instance->background_update_mutex));
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
pthread_mutex_unlock(&(maat_instance->background_update_mutex));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user