[telepathy-sofiasip/master] Prevent an assertion when no transport is selected
Mikhail Zabaluev
mikhail.zabaluev at nokia.com
Thu Aug 27 05:00:48 PDT 2009
---
src/sip-connection-helpers.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/sip-connection-helpers.c b/src/sip-connection-helpers.c
index c95ad60..02717f7 100644
--- a/src/sip-connection-helpers.c
+++ b/src/sip-connection-helpers.c
@@ -810,7 +810,8 @@ tpsip_handle_normalize (TpHandleRepoIface *repo,
{
/* Set the scheme to SIP or SIPS accordingly to the connection's
* transport preference */
- if (g_ascii_strcasecmp (priv->transport, "tls") == 0)
+ if (priv->transport != NULL
+ && g_ascii_strcasecmp (priv->transport, "tls") == 0)
{
url->url_type = url_sips;
url->url_scheme = "sips";
--
1.5.6.5
More information about the telepathy-commits
mailing list