catch (...) {
}
sd.serial = soadata.serial;
+ // coverity[store_truncates_time_t]
if (sd.last_check + soadata.refresh < (unsigned int)time(nullptr))
unfreshDomains->push_back(std::move(sd));
}
uint32_t getRefreshInterval() const
{
+ // coverity[store_truncates_time_t]
return d_refreshinterval;
}
DNSSECKeeper::keyset_t DNSSECKeeper::getKeys(const DNSName& zone, bool useCache)
{
static int ttl = ::arg().asNum("dnssec-key-cache-ttl");
+ // coverity[store_truncates_time_t]
unsigned int now = time(nullptr);
if(!((++s_ops) % 100000)) {
shared_ptr<const SOARecordContent> sr;
uint32_t serial = getSerialFromMaster(master, zone, sr, tt);
if(ourSerial == serial) {
- time_t sleepTime = sr ? sr->d_st.refresh : 60;
+ unsigned int sleepTime = sr ? sr->d_st.refresh : 60;
cout<<"still up to date, their serial is "<<serial<<", sleeping "<<sleepTime<<" seconds"<<endl;
sleep(sleepTime);
continue;
DNSPacketWriter pwtkey(packet, gssctx.getLabel(), QType::TKEY, QClass::ANY);
TKEYRecordContent tkrc;
tkrc.d_algo = DNSName("gss-tsig.");
+ // coverity[store_truncates_time_t]
tkrc.d_inception = time((time_t*)NULL);
tkrc.d_expiration = tkrc.d_inception+15;
tkrc.d_mode = 3;
return (old_serial + (inception / (7*86400)));
}
else if(pdns_iequals(kind,"EPOCH")) {
+ // coverity[store_truncates_time_t]
return time(nullptr);
}
else if(pdns_iequals(kind,"INCEPTION-EPOCH")) {
return old_serial + 1;
}
else if (pdns_iequals(increaseKind, "EPOCH")) {
+ // coverity[store_truncates_time_t]
return time(nullptr);
}
else if (pdns_iequals(increaseKind, "DEFAULT")) {
tkey_out->d_error = 0;
tkey_out->d_mode = tkey_in.d_mode;
tkey_out->d_algo = tkey_in.d_algo;
+ // coverity[store_truncates_time_t]
tkey_out->d_inception = inception;
tkey_out->d_expiration = tkey_out->d_inception+15;
time_t now = time(nullptr);
for (const auto& comment : container["comments"].array_items()) {
+ // FIXME this is converting to a *signed* int, 2036 issue
c.modified_at = intFromJson(comment, "modified_at", now);
c.content = stringFromJson(comment, "content");
c.account = stringFromJson(comment, "account");