1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

resolved: make expiration error recognizable

This commit is contained in:
Lennart Poettering 2015-12-03 17:22:17 +01:00
parent c9ad0edbab
commit 2a44bec4f6

View File

@ -228,7 +228,7 @@ static int dnssec_rrsig_expired(DnsResourceRecord *rrsig, usec_t realtime) {
inception = rrsig->rrsig.inception * USEC_PER_SEC;
if (inception > expiration)
return -EINVAL;
return -EKEYREJECTED;
/* Permit a certain amount of clock skew of 10% of the valid time range */
skew = (expiration - inception) / 10;