Skip to content

Fix handling empty OPT - #128

Merged
samuelwilliams merged 2 commits into
Badcow:masterfrom
yeganemehr:fix/empty-opt
Aug 18, 2026
Merged

Fix handling empty OPT#128
samuelwilliams merged 2 commits into
Badcow:masterfrom
yeganemehr:fix/empty-opt

Conversation

@yeganemehr

Copy link
Copy Markdown
Contributor

An empty OPT record is common. To reproduce it, just use dig +nocookie.

This PR fixes the issue with a small change of using a while loop instead of do while.

@yeganemehr

Copy link
Copy Markdown
Contributor Author

@samuelwilliams conflicts resolved

@samuelwilliams
samuelwilliams merged commit b44300f into Badcow:master Aug 18, 2026
4 checks passed
@yeganemehr
yeganemehr deleted the fix/empty-opt branch August 18, 2026 16:15
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