Avoid crash in avahi

This commit is contained in:
Patrick Nicolas
2023-11-23 21:59:46 +01:00
parent e7a029a8db
commit d74512bebb
+2 -1
View File
@@ -95,7 +95,8 @@ void avahi_publisher::client_callback(AvahiClient * s,
case AVAHI_CLIENT_S_COLLISION:
case AVAHI_CLIENT_S_REGISTERING:
avahi_entry_group_reset(self->entry_group);
if (self->entry_group)
avahi_entry_group_reset(self->entry_group);
break;
case AVAHI_CLIENT_S_RUNNING: