Commit 64ef7575 authored by Jan Včelák's avatar Jan Včelák 🚀

coverity fix: overflow returned value

Temporary fix till we start using a time type with well-defined range.

CID 1269294
parent c3a564e9
......@@ -157,7 +157,7 @@ static uint32_t schedule_next(kdnssec_ctx_t *kctx, const zone_keyset_t *keyset,
// DNSKEY modification
uint32_t dnskey_update = knot_get_next_zone_key_event(keyset);
uint32_t dnskey_update = MIN(MAX(knot_get_next_zone_key_event(keyset), 0), UINT32_MAX);
// zone events
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment