fixed crash in case of ZeroConf name collision

This commit is contained in:
badaix 2015-05-24 15:10:46 +02:00
parent 52b0e92a5c
commit 94ee70d0af
3 changed files with 12 additions and 8 deletions

View file

@ -134,7 +134,7 @@ void PublishAvahi::create_services(AvahiClient *c) {
if (!group)
{
if (!(group = avahi_entry_group_new(c, entry_group_callback, NULL))) {
if (!(group = avahi_entry_group_new(c, entry_group_callback, this))) {
logE << "avahi_entry_group_new() failed: " << avahi_strerror(avahi_client_errno(c)) << "\n";
goto fail;
}