Skip to content

dnstable_lookup: validate DNSTABLE_SETFILE before use - #101

Open
mterenzi wants to merge 1 commit into
farsightsec:nextfrom
mterenzi:setfile-warnings
Open

dnstable_lookup: validate DNSTABLE_SETFILE before use#101
mterenzi wants to merge 1 commit into
farsightsec:nextfrom
mterenzi:setfile-warnings

Conversation

@mterenzi

Copy link
Copy Markdown

Pointing DNSTABLE_SETFILE at an mtbl data file instead of a set file read the
whole file looking for pathnames and silently returned nothing; it now fails
immediately, and data files that cannot be reached are reported to stderr.

Adds DNSTABLE_SETFILE_STRICT env var to make an unreachable data file fatal rather
than a warning.

Added tests for this

@mterenzi

Copy link
Copy Markdown
Author

RTE-771

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.

1 participant