From 51302b1144d440213a6cf89858fdd1706b578229 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 18 Dec 2013 15:32:25 +0100 Subject: [PATCH] fix crash when calling an empty uri fix property box udp port adjustement , that shall start to 0 --- coreapi/linphonecore.c | 2 ++ gtk/parameters.ui | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 6741073b1..870512454 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2297,6 +2297,8 @@ LinphoneAddress * linphone_core_interpret_url(LinphoneCore *lc, const char *url) LinphoneProxyConfig *proxy=lc->default_proxy; char *tmpurl; LinphoneAddress *uri; + + if (*url=='\0') return NULL; if (is_enum(url,&enum_domain)){ if (lc->vtable.display_status!=NULL) diff --git a/gtk/parameters.ui b/gtk/parameters.ui index 21464d9e4..5f42cf9c5 100644 --- a/gtk/parameters.ui +++ b/gtk/parameters.ui @@ -48,7 +48,6 @@ 10 - 1 65535 5060 1