cache: improve update call by doing a full refresh probe
[project/mdnsd.git] / interface.c
index 5b1591c3704b775b13585453514ad1276266d3bc..ad25b39b984ad7d9b9e392da3db5a3f39bbcec89 100644 (file)
@@ -164,6 +164,7 @@ static struct interface *interface_lookup(unsigned int ifindex, enum umdns_socke
 
 static void interface_free(struct interface *iface)
 {
+       cache_cleanup(iface);
        announce_free(iface);
        free(iface->addrs.v4);
        free(iface);
@@ -651,7 +652,8 @@ void interface_shutdown(void)
 
        vlist_for_each_element(&interfaces, iface, node)
                if (interface_multicast(iface)) {
-                       dns_reply_a(iface, NULL, 0);
+                       dns_reply_a(iface, NULL, 0, NULL);
+                       dns_reply_a_additional(iface, NULL, 0);
                        service_announce_services(iface, NULL, 0);
                }