From f2e90629e633559e4336c6f2e700bd518510b270 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Fri, 20 Jul 2012 07:56:24 +0300 Subject: [PATCH] Fix #3543294: Support Lync 2010 meet URLs (2) Add missing NULL pointer handling. --- src/core/sipe-conf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/sipe-conf.c b/src/core/sipe-conf.c index 8016cd10..22189607 100644 --- a/src/core/sipe-conf.c +++ b/src/core/sipe-conf.c @@ -294,6 +294,9 @@ parse_ocs_focus_uri(const gchar *uri) const gchar *confkey; size_t uri_len; + if (!uri) + return NULL; + // URI can have this prefix if it was typed in by the user if (g_str_has_prefix(uri, "meet:")) { uri += 5; @@ -323,6 +326,9 @@ parse_lync_join_url(const gchar *uri) gchar **parts; int parts_count = 0; + if (!uri) + return NULL; + if (g_str_has_prefix(uri, "https://")) { uri += 8; } else if (g_str_has_prefix(uri, "http://")) { -- 2.11.4.GIT