From: Pasi Sjöholm <pasi.sjoh...@jollamobile.com>

Whenever the remove_entries() is called the __connman_dnsproxy_remove()
must act properly eg. with triggered solver_expire_cb() the expired 
DNSSL-records
from the IPv6 RA's must be removed.
---
 src/dnsproxy.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 1e8fcfb..a4682a7 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -2782,9 +2782,15 @@ int __connman_dnsproxy_remove(int index, const char 
*domain,
 {
        DBG("index %d server %s", index, server);
 
-       if (!server)
+       if (!server && !domain)
                return -EINVAL;
 
+       if (!server) {
+               remove_domain(index, domain);
+
+               return 0;
+       }
+
        if (g_str_equal(server, "127.0.0.1"))
                return -ENODEV;
 
-- 
2.1.4

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to