]> git.meshlink.io Git - catta/commitdiff
gobject: avoid assertion when using ga_entry_group_attach() improperly
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 28 Jun 2010 19:16:23 +0000 (21:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 28 Jun 2010 19:16:23 +0000 (21:16 +0200)
http://avahi.org/ticket/304

avahi-gobject/ga-entry-group.c

index 0f0ab74e97e1f91626a21e8df0ea2bfb46e535b3..23e8ec3c8e28db43db10a2c7936ddffcaf31902f 100644 (file)
@@ -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);