Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rideliner
Copy link
Contributor

1. Why is this pull request needed and what does it do?

Error handling for the zone parser does not follow the guidance of the dns library.

After Next returns (nil, false), the Err method will return any error that occurred during parsing.

zp.Err() will only return nil while inside the loop.

2. Which issues (if any) are related?

None

3. Which documentation changes (if any) need to be made?

None

4. Does this introduce a backward incompatible change or deprecation?

May cause an error where previously the parser would have silently stopped parsing the file.

Signed-off-by: Nathan Currier <[email protected]>
@rideliner rideliner force-pushed the fix/zone-parser-error branch from 6983186 to 1cfc3b0 Compare May 13, 2024 20:25
@chrisohaver chrisohaver merged commit 626333a into coredns:master Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants