Correctly handling nginx configuration merge

This commit is contained in:
Felipe Zimmerle 2015-08-25 15:06:00 -03:00
parent 004ef066ed
commit e76af0eab9
2 changed files with 4 additions and 1 deletions

View File

@ -66,6 +66,7 @@ int Driver::addSecRule(Rule *rule) {
int Driver::parse(const std::string &f, const std::string &ref) {
lastRule = NULL;
loc.push_back(new yy::location());
if (ref.empty()) {
this->ref.push_back("<<reference missing or not informed>>");

View File

@ -251,7 +251,9 @@ int Rules::merge(Rules *from) {
this->debugLog->refCountIncrease();
this->audit_log = from->audit_log;
this->audit_log->refCountIncrease();
if (this->audit_log != NULL) {
this->audit_log->refCountIncrease();
}
this->debugLog->setDebugLevel(from->debugLevel);
this->debugLog->setOutputFile(from->debug_log_path);