From ac84e2a88f37aa778a9ac7be6bbb7b44b431cd57 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 28 Jun 2010 21:16:23 +0200 Subject: [PATCH] gobject: avoid assertion when using ga_entry_group_attach() improperly http://avahi.org/ticket/304 --- avahi-gobject/ga-entry-group.c | 1 + 1 file changed, 1 insertion(+) diff --git a/avahi-gobject/ga-entry-group.c b/avahi-gobject/ga-entry-group.c index 0f0ab74..23e8ec3 100644 --- a/avahi-gobject/ga-entry-group.c +++ b/avahi-gobject/ga-entry-group.c @@ -574,6 +574,7 @@ gboolean ga_entry_group_attach(GaEntryGroup * group, GaClient * client, GError ** error) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); + g_return_val_if_fail(client->avahi_client, FALSE); g_assert(priv->client == NULL || priv->client == client); g_assert(priv->group == NULL); -- 2.39.5