summaryrefslogtreecommitdiff
path: root/src/ring-media-manager.c
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2011-01-04 21:03:31 +0200
committerPekka Pessi <Pekka.Pessi@nokia.com>2011-01-04 21:03:31 +0200
commit7873c3b8eadb8866ffeaacad782ca24e0f0695bc (patch)
tree264c4938926ae4380d1302391e65d82db2420761 /src/ring-media-manager.c
parent312406fd36de5761b6a3691f9155b6a99eabd320 (diff)
fd.o #32718: return InvalidHandle if calling to self or anonymous handle
Diffstat (limited to 'src/ring-media-manager.c')
-rw-r--r--src/ring-media-manager.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ring-media-manager.c b/src/ring-media-manager.c
index 4475c63..b91c198 100644
--- a/src/ring-media-manager.c
+++ b/src/ring-media-manager.c
@@ -717,10 +717,6 @@ ring_media_requestotron(RingMediaManager *self,
handle = tp_asv_get_uint32 (properties,
TP_IFACE_CHANNEL ".TargetHandle", NULL);
- if (handle == priv->connection->parent.self_handle ||
- handle == priv->connection->anon_handle)
- return FALSE;
-
if (kind == METHOD_COMPATIBLE &&
handle == 0 &&
ring_properties_satisfy(properties,
@@ -753,7 +749,7 @@ ring_media_requestotron(RingMediaManager *self,
g_error_free(error);
return TRUE;
}
- /* We do not yes support 'w' */
+ /* We do not yet support 'w' */
else if (strchr(target_id, 'w')) {
tp_channel_manager_emit_request_failed(
self, request,