fix(dnssec) TestDelegationUnSigned: Potential nil pointer dereference (#8042)

Signed-off-by: Andrey Rusanov <andrey.rusanov@edgecenter.ru>
This commit is contained in:
andreyrusanov-ec
2026-04-12 11:34:23 +03:00
committed by GitHub
parent 57a95e2677
commit 8a28dc9c7d

View File

@@ -169,7 +169,10 @@ func TestDelegationUnSigned(t *testing.T) {
}
}
if nsec == nil {
t.Error("Authority section should hold a NSEC record")
t.Fatal("Authority section should hold a NSEC record")
}
if rrsig == nil {
t.Fatal("Authority section should hold a RRSIG record")
}
if rrsig.TypeCovered != dns.TypeNSEC {
t.Errorf("RRSIG should cover type %s, got %s",