Skip to content

Commit

Permalink
Fix regression in Syntax04
Browse files Browse the repository at this point in the history
The change introduced in zonemaster#1322 to make Syntax04 take the domain under
test, instead of a name server name, had a little oversight that caused
the zone under test being tested for good syntax, instead of a name
server name.

Make sure we refer to the correct variable.
  • Loading branch information
marc-vanderwal committed Jul 1, 2024
1 parent f1f3c07 commit 5b22c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zonemaster/Engine/Test/Syntax.pm
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ sub syntax04 {
)
)
{
push @results, _check_name_syntax( q{NAMESERVER}, $zone->name );
push @results, _check_name_syntax( q{NAMESERVER}, $local_nsname );
}

return ( @results, _emit_log( TEST_CASE_END => { testcase => $Zonemaster::Engine::Logger::TEST_CASE_NAME } ) );
Expand Down

0 comments on commit 5b22c69

Please sign in to comment.