mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 10:19:23 +00:00
account_creator: fix crash in set_username
This commit is contained in:
parent
bd6add2963
commit
95d1e16f6a
1 changed files with 1 additions and 1 deletions
|
|
@ -148,6 +148,7 @@ static LinphoneAccountCreatorStatus validate_uri(const char* username, const cha
|
|||
|
||||
if (addr == NULL) {
|
||||
status = LinphoneAccountCreatorUsernameInvalid;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (domain && linphone_address_set_domain(addr, domain) != 0) {
|
||||
|
|
@ -157,7 +158,6 @@ static LinphoneAccountCreatorStatus validate_uri(const char* username, const cha
|
|||
if (display_name && linphone_address_set_display_name(addr, display_name) != 0) {
|
||||
status = LinphoneAccountCreatorDisplayNameInvalid;
|
||||
}
|
||||
|
||||
linphone_address_unref(addr);
|
||||
end:
|
||||
linphone_proxy_config_destroy(proxy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue