summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection-manager.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-03-11 15:26:24 +0000
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-06-29 20:31:57 -0300
commit948eb176272b0875f3bff42b5c28c83044e34a26 (patch)
tree76295b8d2ce113e18322812cef9692d1a80b47ec /telepathy-glib/connection-manager.c
parent03af3647c963a6bf2d3ca83b858a426bd40ca9f3 (diff)
downloadtelepathy-glib-948eb176272b0875f3bff42b5c28c83044e34a26.tar.gz
tp_connection_manager_got_protocols: ignore protocols with invalid names
Diffstat (limited to 'telepathy-glib/connection-manager.c')
-rw-r--r--telepathy-glib/connection-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c
index 02861730c..fe51f4e73 100644
--- a/telepathy-glib/connection-manager.c
+++ b/telepathy-glib/connection-manager.c
@@ -813,6 +813,12 @@ tp_connection_manager_got_protocols (TpConnectionManager *self,
for (iter = protocols; *iter != NULL; iter++)
{
+ if (!tp_connection_manager_check_valid_protocol_name (*iter, NULL))
+ {
+ DEBUG ("Protocol %s has an invalid name", *iter);
+ continue;
+ }
+
g_ptr_array_add (self->priv->pending_protocols, g_strdup (*iter));
}