Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a crash in rewrite plugin when rule type is missing #5459

Merged
merged 2 commits into from Jun 25, 2022

Conversation

yongtang
Copy link
Member

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

This PR tries to fix a crash in rewrite plugin when rule type is missing.

2. Which issues (if any) are related?

n/a

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

n/a

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

n/a

Signed-off-by: Yong Tang yong.tang.github@outlook.com

This PR tries to fix a crash inrewrite plugin when rule type
is missing.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@codecov-commenter
Copy link

Codecov Report

Merging #5459 (63ed778) into master (93c57b6) will increase coverage by 1.23%.
The diff coverage is 59.58%.

@@            Coverage Diff             @@
##           master    #5459      +/-   ##
==========================================
+ Coverage   55.70%   56.93%   +1.23%     
==========================================
  Files         224      235      +11     
  Lines       10016    14771    +4755     
==========================================
+ Hits         5579     8410    +2831     
- Misses       3978     5855    +1877     
- Partials      459      506      +47     
Impacted Files Coverage Δ
core/dnsserver/address.go 100.00% <ø> (ø)
core/dnsserver/config.go 0.00% <ø> (ø)
core/dnsserver/onstartup.go 0.00% <0.00%> (ø)
core/dnsserver/server_grpc.go 8.16% <0.00%> (+2.10%) ⬆️
plugin/auto/auto.go 0.00% <0.00%> (ø)
plugin/auto/zone.go 78.94% <ø> (+0.68%) ⬆️
plugin/azure/azure.go 10.61% <0.00%> (-0.57%) ⬇️
plugin/backend_lookup.go 0.00% <0.00%> (ø)
plugin/bind/bind.go 50.00% <0.00%> (-50.00%) ⬇️
plugin/bufsize/bufsize.go 100.00% <ø> (ø)
... and 310 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 497c31f...63ed778. Read the comment docs.

Copy link
Collaborator

@greenpau greenpau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yongtang yongtang merged commit 4a40e9e into coredns:master Jun 25, 2022
@yongtang yongtang deleted the fix-issue branch June 25, 2022 16:17
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.

None yet

3 participants