mesh->avahi_browser = NULL;
}
+ if(mesh->avahi_group)
+ {
+ avahi_s_entry_group_reset(mesh->avahi_group);
+ avahi_s_entry_group_free(mesh->avahi_group);
+ mesh->avahi_group = NULL;
+ }
+
if(mesh->avahi_server != NULL)
{
avahi_server_free(mesh->avahi_server);
if(!from) {
from = new_node();
from->name = xstrdup(from_name);
- from->dclass = from_dclass;
node_add(mesh, from);
}
+ from->dclass = from_dclass;
+
if(!to) {
to = new_node();
to->name = xstrdup(to_name);
- to->dclass = to_dclass;
node_add(mesh, to);
}
+ to->dclass = to_dclass;
+
/* Convert addresses */
address = str2sockaddr(to_address, to_port);