From 1cb6c12ad4840c89782d70a899c7cc228ae42917 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Fri, 4 Jun 2021 17:00:22 +0200 Subject: [PATCH] Fix bug when checking if a password confirmation popup should appear --- Classes/LinphoneManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 1b2da6af8..d54fecaa4 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -751,7 +751,7 @@ static void linphone_iphone_popup_password_request(LinphoneCore *lc, LinphoneAut bool foundMatchingConfig = false; while (accountList && !foundMatchingConfig) { LinphoneAccountParams const *accountParams = linphone_account_get_params(accountList->data); - const char * configUsername = linphone_account_params_get_identity(accountParams); + const char * configUsername = linphone_address_get_username(linphone_account_params_get_identity_address(accountParams)); const char * configDomain = linphone_account_params_get_domain(accountParams); foundMatchingConfig = (strcmp(configUsername, usernameC) == 0) && (strcmp(configDomain, domainC) == 0); accountList = accountList->next;