]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/static-services.c
* fix memory handling when reading configuration files
[catta] / avahi-daemon / static-services.c
index 89e81227e03de549034cacf13587ea868a31de8d..8148de451fa2a6e3391c96514092f1109c27ca27 100644 (file)
@@ -211,7 +211,7 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) {
                 -1, AF_UNSPEC,
                 s->type, g->chosen_name,
                 s->domain_name, s->host_name, s->port,
-                s->txt_records) < 0) {
+                avahi_string_list_copy(s->txt_records)) < 0) {
             g_message("Failed to add service '%s' of type '%s', ignoring service group (%s)", g->chosen_name, s->type, g->filename);
             remove_static_service_group_from_server(g);
             return;