blob: 8612afb6d9209b7569cc31b8d432b2f36d65d401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From: =?utf-8?b?VmxhZGltw61yIMSMdW7DoXQ=?= <vladimir.cunat@nic.cz>
Date: Fri, 23 Feb 2024 09:33:21 +0100
Subject: lib/dnssec: fix imprecise assertion
It was no longer correct after commit cc5051b444130 (KeyTrap).
---
lib/dnssec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dnssec.c b/lib/dnssec.c
index 262570c..fcae473 100644
--- a/lib/dnssec.c
+++ b/lib/dnssec.c
@@ -477,7 +477,7 @@ int kr_dnskeys_trusted(kr_rrset_validation_ctx_t *vctx, const knot_rdataset_t *s
ret = kr_svldr_rrset_with_key(keys, sigs, vctx, &key);
svldr_key_del(&key);
if (ret == 0 || ret == kr_error(E2BIG)) {
- kr_assert(vctx->result == 0);
+ kr_assert(vctx->result == ret);
return vctx->result;
}
}
|