From 4e1fab0df5dbede5ab3729e286c896625c9c555a Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Sat, 13 Jun 2020 19:39:30 +0200 Subject: [PATCH] Update SDK --- .../src/components/core/CoreHandlers.cpp | 18 ++++++++++-------- linphone-sdk | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/linphone-app/src/components/core/CoreHandlers.cpp b/linphone-app/src/components/core/CoreHandlers.cpp index b6d70f658..34fc475a9 100644 --- a/linphone-app/src/components/core/CoreHandlers.cpp +++ b/linphone-app/src/components/core/CoreHandlers.cpp @@ -85,14 +85,16 @@ void CoreHandlers::onAuthenticationRequested ( const shared_ptr &authInfo, linphone::AuthMethod ) { - auto configList = core->getProxyConfigList(); - auto config = configList.begin() ; - std::string username = authInfo->getUsername(); - std::string domain = authInfo->getDomain(); - while(config != configList.end() && ((*config)->getContact()->getUsername() != username || (*config)->getContact()->getDomain() != domain)) - ++config; - if( config != configList.end() ) - emit authenticationRequested(authInfo);// Send authentification request only if a proxy still exists + if( authInfo ) { + auto configList = core->getProxyConfigList(); + auto config = configList.begin() ; + std::string username = authInfo->getUsername(); + std::string domain = authInfo->getDomain(); + while(config != configList.end() && ((*config)->getContact()->getUsername() != username || (*config)->getContact()->getDomain() != domain)) + ++config; + if( config != configList.end() ) + emit authenticationRequested(authInfo);// Send authentification request only if a proxy still exists + } } void CoreHandlers::onCallEncryptionChanged ( diff --git a/linphone-sdk b/linphone-sdk index b0d6e1cc4..46174d763 160000 --- a/linphone-sdk +++ b/linphone-sdk @@ -1 +1 @@ -Subproject commit b0d6e1cc4a94e13c6e6575f1fd9a66040776a0d8 +Subproject commit 46174d76354f6031089ef9955edddc2ed2f40623