The _a_match function returns always true for A and AAAA records, because the if conditional uses a || instead of a &&, probably due to a copy-and-paste error.
This patch rewrites the function to return a bool, and to use a switch-case statement to properly separate the type check from the actual comparison.
The
_a_match
function returns always true for A and AAAA records, because the if conditional uses a||
instead of a&&
, probably due to a copy-and-paste error. This patch rewrites the function to return a bool, and to use a switch-case statement to properly separate the type check from the actual comparison.This fixes #71