DNSPacket::s_udpTruncationThreshold = std::max(512, ::arg().asNum("udp-truncation-threshold"));
DNSPacket::s_doEDNSSubnetProcessing = ::arg().mustDo("edns-subnet-processing");
- doSecPoll(true); // this must be BEFORE chroot
+ try {
+ doSecPoll(true); // this must be BEFORE chroot
+ }
+ catch(...) {}
if(!::arg()["chroot"].empty()) {
triggerLoadOfLibraries();
struct timeval now;
gettimeofday(&now, 0);
- string query = "auth-" PACKAGEVERSION ".security-status."+::arg()["security-poll-suffix"];
+ string version = "auth-" + string(PACKAGEVERSION);
+ string query = version.substr(0, 63) +".security-status."+::arg()["security-poll-suffix"];
if(*query.rbegin()!='.')
query+='.';
}
else {
- L<<Logger::Warning<<"Could not retrieve security status update for '" PACKAGEVERSION "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
+ L<<Logger::Warning<<"Could not retrieve security status update for '"<<PACKAGEVERSION<<"' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
if(security_status == 1) // it was ok, not it is unknown
security_status = 0;
}