mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +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)
|
if (!done)
|
||||||
{
|
{
|
||||||
|
done = 1;
|
||||||
list.next = daemon->filter_rr;
|
list.next = daemon->filter_rr;
|
||||||
daemon->filter_rr = &list;
|
daemon->filter_rr = &list;
|
||||||
}
|
}
|
||||||
@@ -844,6 +845,7 @@ DBusHandlerResult message_handler(DBusConnection *connection,
|
|||||||
|
|
||||||
if (!done)
|
if (!done)
|
||||||
{
|
{
|
||||||
|
done = 1;
|
||||||
list.next = daemon->filter_rr;
|
list.next = daemon->filter_rr;
|
||||||
daemon->filter_rr = &list;
|
daemon->filter_rr = &list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user