mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix crash when no proxy is provided
This commit is contained in:
parent
851c488c92
commit
7ce40f5b4d
1 changed files with 2 additions and 2 deletions
|
|
@ -681,11 +681,11 @@
|
|||
goto bad_proxy;
|
||||
}
|
||||
// use proxy as route if outbound_proxy is enabled
|
||||
if (linphone_account_params_set_server_address(newAccountParams, proxy_addr) == -1) {
|
||||
if (proxy_addr && linphone_account_params_set_server_address(newAccountParams, proxy_addr) == -1) {
|
||||
error = NSLocalizedString(@"Invalid proxy address", nil);
|
||||
goto bad_proxy;
|
||||
}
|
||||
if (linphone_account_params_set_routes_addresses(newAccountParams, isOutboundProxy ? bctbx_list_new((void*)proxy_addr) : NULL) == -1) {
|
||||
if (proxy_addr && linphone_account_params_set_routes_addresses(newAccountParams, isOutboundProxy ? bctbx_list_new((void*)proxy_addr) : NULL) == -1) {
|
||||
error = NSLocalizedString(@"Invalid route", nil);
|
||||
goto bad_proxy;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue