mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Fix zone parser error handling (#6680)
Signed-off-by: Nathan Currier <nathan.currier@broadcom.com>
This commit is contained in:
@@ -133,10 +133,6 @@ func resign(rd io.Reader, now time.Time) (why error) {
|
||||
i := 0
|
||||
|
||||
for rr, ok := zp.Next(); ok; rr, ok = zp.Next() {
|
||||
if err := zp.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
switch x := rr.(type) {
|
||||
case *dns.RRSIG:
|
||||
if x.TypeCovered != dns.TypeSOA {
|
||||
@@ -166,7 +162,7 @@ func resign(rd io.Reader, now time.Time) (why error) {
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
return zp.Err()
|
||||
}
|
||||
|
||||
func signAndLog(s *Signer, why error) {
|
||||
|
||||
Reference in New Issue
Block a user