[Telepathy-commits] [telepathy-gabble/master] Reject roomlist requests containing unknown properties
Will Thompson
will.thompson at collabora.co.uk
Tue Sep 16 04:18:06 PDT 2008
---
src/roomlist-manager.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/roomlist-manager.c b/src/roomlist-manager.c
index 41f0b29..826a546 100644
--- a/src/roomlist-manager.c
+++ b/src/roomlist-manager.c
@@ -254,6 +254,12 @@ gabble_roomlist_manager_foreach_channel (TpChannelManager *manager,
}
+static const gchar * const roomlist_channel_fixed_properties[] = {
+ TP_IFACE_CHANNEL ".ChannelType",
+ TP_IFACE_CHANNEL ".TargetHandleType",
+ NULL
+};
+
static const gchar * const roomlist_channel_allowed_properties[] = {
TP_IFACE_CHANNEL_TYPE_ROOM_LIST ".Server",
NULL
@@ -329,6 +335,12 @@ gabble_roomlist_manager_handle_request (TpChannelManager *manager,
goto error;
}
+ if (tp_channel_manager_asv_has_unknown_properties (request_properties,
+ roomlist_channel_fixed_properties,
+ roomlist_channel_allowed_properties,
+ &error))
+ goto error;
+
server = tp_asv_get_string (request_properties,
TP_IFACE_CHANNEL_TYPE_ROOM_LIST ".Server");
--
1.5.6.5
More information about the Telepathy-commits
mailing list