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

ignore Z flag in queries, clear Z flag in automatic replies #976

Merged
merged 1 commit into from
May 23, 2019

Conversation

yarikk
Copy link
Contributor

@yarikk yarikk commented May 22, 2019

Context in issue #975.

cc @chantra

@yarikk
Copy link
Contributor Author

yarikk commented May 22, 2019

genreport -i zflag is verified to return "zflag=ok" with this patch applied.

@codecov-io
Copy link

codecov-io commented May 22, 2019

Codecov Report

Merging #976 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #976      +/-   ##
==========================================
+ Coverage   55.48%   55.52%   +0.03%     
==========================================
  Files          42       42              
  Lines        9923     9922       -1     
==========================================
+ Hits         5506     5509       +3     
+ Misses       3389     3387       -2     
+ Partials     1028     1026       -2
Impacted Files Coverage Δ
acceptfunc.go 46.66% <ø> (+5.49%) ⬆️
server.go 67.31% <100%> (+0.09%) ⬆️
msg.go 76.83% <0%> (+0.33%) ⬆️

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 fbd426f...4fc5b74. Read the comment docs.

@@ -571,6 +571,7 @@ func (srv *Server) serveDNS(m []byte, w *response) {
req.SetRcodeFormatError(req)
// Are we allowed to delete any OPT records here?
req.Ns, req.Answer, req.Extra = nil, nil, nil
req.Zero = false
Copy link
Contributor

Choose a reason for hiding this comment

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

while this is not currently explicitly tested, it seems like a good default when rejecting the message.

Copy link
Owner

@miekg miekg left a comment

Choose a reason for hiding this comment

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

lgtm, one comment

server_test.go Outdated Show resolved Hide resolved
@yarikk
Copy link
Contributor Author

yarikk commented May 23, 2019

The excessive testing code removed, leaving with the only two checks for the aspects this diff changes. @miekg

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

4 participants