From c02cf6b47bb9adb2d081376bd0dcd4cab8f834c0 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 2 Oct 2015 15:59:36 +0200 Subject: [PATCH] LinphoneCoreSettings: fix registration when modifying password --- Classes/LinphoneCoreSettingsStore.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index f6ad3fe02..097b1ea4a 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -489,8 +489,8 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args); LinphoneAddress *from = linphone_address_new(identity); if (from != 0) { const char *userid_str = (userID != nil) ? [userID UTF8String] : NULL; - info = linphone_auth_info_new(linphone_address_get_username(from), userid_str, password, ha1, NULL, - linphone_proxy_config_get_domain(proxyCfg)); + info = linphone_auth_info_new(linphone_address_get_username(from), userid_str, password ? password : NULL, + password ? NULL : ha1, NULL, linphone_proxy_config_get_domain(proxyCfg)); linphone_address_destroy(from); }