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

Auth: drop broken support for packet-specific SOA replies from backends #5512

Merged
merged 3 commits into from Jul 12, 2017

Conversation

zeha
Copy link
Collaborator

@zeha zeha commented Jul 11, 2017

Short description

Remove DNSPacket pointer from getSOA. This was never okay to use (at least with caching enabled).

Split from #4545 per @Habbie's wish.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@zeha zeha requested a review from Habbie July 11, 2017 13:02
@zeha zeha added the auth label Jul 11, 2017
@@ -176,12 +176,12 @@ bool LUABackend::get(DNSResourceRecord &rr) {
return !rr.content.empty();
}

bool LUABackend::getSOA(const DNSName &name, SOAData &soadata, DNSPacket *p) {
bool LUABackend::getSOA(const string &name, SOAData &soadata) {
Copy link
Member

Choose a reason for hiding this comment

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

string ?!

@@ -176,12 +176,12 @@ bool LUABackend::get(DNSResourceRecord &rr) {
return !rr.content.empty();
}

bool LUABackend::getSOA(const DNSName &name, SOAData &soadata, DNSPacket *p) {
bool LUABackend::getSOA(const string &name, SOAData &soadata) {
dnspacket = NULL;
Copy link
Member

Choose a reason for hiding this comment

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

LUABackend::dnspacket can be removed completely now.

@zeha
Copy link
Collaborator Author

zeha commented Jul 11, 2017

After this force-push battle... my commit does compile now and also sets dnspacket=NULL in LUABackend::getSOA(), which is probably important?

@Habbie
Copy link
Member

Habbie commented Jul 11, 2017

dnspacket=NULL in getSOA can go away

@Habbie Habbie added this to the auth-4.1.0 milestone Jul 12, 2017
@mind04
Copy link
Contributor

mind04 commented Jul 12, 2017

LGTM

@Habbie Habbie merged commit 8e7cc71 into PowerDNS:master Jul 12, 2017
@zeha zeha deleted the soa-no-packet branch July 12, 2017 17:02
mind04 added a commit to mind04/pdns that referenced this pull request Jul 18, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Jul 18, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Jul 18, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Sep 16, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Sep 17, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Sep 17, 2017
mind04 added a commit to mind04/pdns that referenced this pull request Oct 10, 2018
rgacogne added a commit that referenced this pull request Oct 15, 2018
auth: scopeMask in the SOAData structure is unused after #5512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants