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 committed 2024-02-20 23:38:26 +00:00
1 parent 89aad01468
commit 4c590320ec
2 files changed
+45 -24

No files matched your search

+1 -1
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;