summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2010-12-06 16:59:29 +0000
committerDavid Laban <david.laban@collabora.co.uk>2011-01-26 17:16:33 +0000
commit364ff37b08cc76841312b04450cb8de9541f2ada (patch)
treec6f94be9a0776ceb917f7c9475525474ab86cbc0
parent1de34ce405c9df7ea0953604ebfa19fc04b92f9d (diff)
Don't call priv_outbound_call (self, 0)
This previously happened if the client requested an anonymous streamedmedia channel, but doing so would cause a crash.
-rw-r--r--src/sip-media-channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c
index 5cec002..4f6f730 100644
--- a/src/sip-media-channel.c
+++ b/src/sip-media-channel.c
@@ -1039,6 +1039,11 @@ tpsip_media_channel_create_initial_streams (TpsipMediaChannel *self)
g_assert (priv->initiator != priv->handle);
+ /* RequestChannel(None, 0) => channel is anonymous:
+ * caller uses RequestStreams to set the peer and start the call. */
+ if (priv->handle == 0)
+ return;
+
priv_outbound_call (self, priv->handle);
g_assert (priv->session != NULL);