mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-22 11:46:09 +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:
1 file changed
+2
@@ -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