diff options
author | David Laban <david.laban@collabora.co.uk> | 2010-12-06 16:59:29 +0000 |
---|---|---|
committer | David Laban <david.laban@collabora.co.uk> | 2011-01-26 17:16:33 +0000 |
commit | 364ff37b08cc76841312b04450cb8de9541f2ada (patch) | |
tree | c6f94be9a0776ceb917f7c9475525474ab86cbc0 /src | |
parent | 1de34ce405c9df7ea0953604ebfa19fc04b92f9d (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/sip-media-channel.c | 5 |
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); |