mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 02:08:24 +00:00
Fix infinite loop when invoking SetFilterA dbus method more than once.
Also applies to SetFilterAAAA. Thanks to Clayton Craft for spotting the issue.
This commit is contained in:
@@ -833,6 +833,7 @@ DBusHandlerResult message_handler(DBusConnection *connection,
|
||||
|
||||
if (!done)
|
||||
{
|
||||
done = 1;
|
||||
list.next = daemon->filter_rr;
|
||||
daemon->filter_rr = &list;
|
||||
}
|
||||
@@ -844,6 +845,7 @@ DBusHandlerResult message_handler(DBusConnection *connection,
|
||||
|
||||
if (!done)
|
||||
{
|
||||
done = 1;
|
||||
list.next = daemon->filter_rr;
|
||||
daemon->filter_rr = &list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user