Fix breakage in DBus FilterA and FilterAAAA methods.

In generalising the RR filter code, the Dbus methods
controlling filtering A and AAAA records
got severely broken. This, and the previous commit,
fixes things.
This commit is contained in:
Simon Kelley
2024-02-20 23:38:26 +00:00
parent 89aad01468
commit 4c590320ec
2 changed files with 45 additions and 24 deletions

View File

@@ -119,7 +119,7 @@ int rr_on_list(struct rrlist *list, unsigned short rr)
{
while (list)
{
if (list->rr == rr)
if (list->rr != 0 && list->rr == rr)
return 1;
list = list->next;