bdr.content = content;
bdr.nsec3hash = hashed;
- if (auth) // Set auth on empty non-terminals
+ if (auth != nullptr) // Set auth on empty non-terminals
bdr.auth = *auth;
else
bdr.auth = true;
ostringstream msg;
msg << " error at " + nowTime() + " parsing '" << domain.name << "' from file '" << domain.filename << "': " << ae.reason;
- if (status)
+ if (status != nullptr)
*status += msg.str();
bbd.d_status = msg.str();
else
msg << " error at " + nowTime() + " parsing '" << domain.name << "' from file '" << domain.filename << "': " << ae.what();
- if (status)
+ if (status != nullptr)
*status += msg.str();
bbd.d_status = msg.str();
g_log << Logger::Warning << d_logprefix << msg.str() << endl;
ostringstream msg;
msg << " error at " + nowTime() + " parsing '" << domain.name << "' from file '" << domain.filename << "': " << ae.what();
- if (status)
+ if (status != nullptr)
*status += msg.str();
bbd.d_status = msg.str();
ostringstream msg;
msg << " Done parsing domains, " << rejected << " rejected, " << newdomains << " new, " << remdomains << " removed";
- if (status)
+ if (status != nullptr)
*status = msg.str();
g_log << Logger::Error << d_logprefix << msg.str() << endl;