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

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