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
117c833d
Commit
117c833d
authored
Jul 10, 2014
by
jehan
Browse files
fix crash when proxy config done is call first
parent
f3cfd4e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
coreapi/proxy.c
coreapi/proxy.c
+2
-2
tester/setup_tester.c
tester/setup_tester.c
+2
-0
No files found.
coreapi/proxy.c
View file @
117c833d
...
...
@@ -275,13 +275,13 @@ int linphone_proxy_config_set_route(LinphoneProxyConfig *obj, const char *route)
bool_t
linphone_proxy_config_check
(
LinphoneCore
*
lc
,
LinphoneProxyConfig
*
obj
){
if
(
obj
->
reg_proxy
==
NULL
){
if
(
lc
->
vtable
.
display_warning
)
if
(
lc
&&
lc
->
vtable
.
display_warning
)
lc
->
vtable
.
display_warning
(
lc
,
_
(
"The sip proxy address you entered is invalid, it must start with
\"
sip:
\"
"
" followed by a hostname."
));
return
FALSE
;
}
if
(
obj
->
reg_identity
==
NULL
){
if
(
lc
->
vtable
.
display_warning
)
if
(
lc
&&
lc
->
vtable
.
display_warning
)
lc
->
vtable
.
display_warning
(
lc
,
_
(
"The sip identity you entered is invalid.
\n
It should look like "
"sip:username@proxydomain, such as sip:alice@example.net"
));
return
FALSE
;
...
...
tester/setup_tester.c
View file @
117c833d
...
...
@@ -127,6 +127,8 @@ void linphone_proxy_config_address_equal_test() {
void
linphone_proxy_config_is_server_config_changed_test
()
{
LinphoneProxyConfig
*
proxy_config
=
linphone_proxy_config_new
();
linphone_proxy_config_done
(
proxy_config
);
/*test done without edit*/
linphone_proxy_config_set_identity
(
proxy_config
,
"sip:toto@titi"
);
linphone_proxy_config_edit
(
proxy_config
);
linphone_proxy_config_set_identity
(
proxy_config
,
"sips:toto@titi"
);
...
...
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