Skip to content

Multi origin missing ats#12

Open
SamLR wants to merge 2 commits intolantins:masterfrom
SamLR:multi-origin-missing-ats
Open

Multi origin missing ats#12
SamLR wants to merge 2 commits intolantins:masterfrom
SamLR:multi-origin-missing-ats

Conversation

@SamLR
Copy link

@SamLR SamLR commented Feb 3, 2017

Fix #11.

This fixes a problem in parsing empty lines for records with subsequent $ORIGIN statements.

Sam Cook added 2 commits February 3, 2017 15:53
Many zone files don't include a full name and instead use a blank field
in order to refer to the $ORIGIN value. Currently the library doesn't
work for cases where there are multiple $ORIGIN values that also have
a missing name field.
This fixes a bug in parsing zone files that have empty labelled records
after secondary $ORIGIN statements. Records which have an empty label
field should have their label parsed as the same as the previous record.
In files with multiple $ORIGIN statements these empty labels instead
pick up an increasing number of copies of their $ORIGIN value.

This fixes the bug by checking whether the label of the record is the
same as the previous one before determining whether to append the
`unrolled_origin`.
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.

Zone files with multiple $ORIGINs produce incorrect labels

1 participant