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

Better test for presence of EDNS option with extended error code #275

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

kdrenard
Copy link
Contributor

@kdrenard kdrenard commented Jan 13, 2023

ldns libraries "consume" the OPT Additional Records such that the arcount is decremented for each OPT. If a packet has only OPT records in AR section, then original test for ldns_pkt_arcount() returns zero, and does not add any extended error code bits.

Copy link
Member

@wessels wessels left a comment

Choose a reason for hiding this comment

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

LGTM, nice catch!

@jelu
Copy link
Member

jelu commented Jan 16, 2023

#build

@jelu jelu merged commit 54ddb26 into DNS-OARC:develop Jan 16, 2023
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.

3 participants