diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-03-11 15:26:24 +0000 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-06-29 20:31:57 -0300 |
commit | 948eb176272b0875f3bff42b5c28c83044e34a26 (patch) | |
tree | 76295b8d2ce113e18322812cef9692d1a80b47ec /telepathy-glib/connection-manager.c | |
parent | 03af3647c963a6bf2d3ca83b858a426bd40ca9f3 (diff) | |
download | telepathy-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.c | 6 |
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)); } |