Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0b69dbaa
Commit
0b69dbaa
authored
Apr 04, 2016
by
Gautier Pelloux-Prayer
Browse files
account_creator.c: fix crash when user enters a port in domain
parent
5e714f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
coreapi/account_creator.c
coreapi/account_creator.c
+6
-2
No files found.
coreapi/account_creator.c
View file @
0b69dbaa
...
...
@@ -170,9 +170,13 @@ static char* _get_identity(const LinphoneAccountCreator *creator) {
//we must escape username
LinphoneProxyConfig
*
proxy
=
linphone_proxy_config_new
();
LinphoneAddress
*
addr
;
linphone_proxy_config_set_identity
(
proxy
,
"sip:userame@domain.com"
);
// creator->domain may contain some port or some transport (eg. toto.org:443;transport=tcp),
// we will accept that
char
*
tmpidentity
=
ms_strdup_printf
(
"sip:username@%s"
,
creator
->
domain
);
linphone_proxy_config_set_identity
(
proxy
,
tmpidentity
);
ms_free
(
tmpidentity
);
addr
=
linphone_proxy_config_normalize_sip_uri
(
proxy
,
creator
->
username
);
linphone_address_set_domain
(
addr
,
creator
->
domain
);
identity
=
linphone_address_as_string
(
addr
);
linphone_address_destroy
(
addr
);
linphone_proxy_config_destroy
(
proxy
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment