mirror of
https://github.com/coredns/coredns.git
synced 2026-04-17 01:15:33 -04:00
fix(dnssec) TestDelegationUnSigned: Potential nil pointer dereference (#8042)
Signed-off-by: Andrey Rusanov <andrey.rusanov@edgecenter.ru>
This commit is contained in:
@@ -169,7 +169,10 @@ func TestDelegationUnSigned(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if nsec == nil {
|
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 {
|
if rrsig.TypeCovered != dns.TypeNSEC {
|
||||||
t.Errorf("RRSIG should cover type %s, got %s",
|
t.Errorf("RRSIG should cover type %s, got %s",
|
||||||
|
|||||||
Reference in New Issue
Block a user