From 68a23b44b0ad8d2cf57ff1b93b6abfd510f14779 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 5 Nov 2013 11:56:23 +0100 Subject: [PATCH] Fix find auth info algorithm for multiples registrations with same username --- coreapi/authentication.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/authentication.c b/coreapi/authentication.c index a71e357da..7690cf28c 100644 --- a/coreapi/authentication.c +++ b/coreapi/authentication.c @@ -298,7 +298,8 @@ const LinphoneAuthInfo *linphone_core_find_auth_info(LinphoneCore *lc, const cha if (ai==NULL && domain){ ai=find_auth_info(lc,username,realm,domain); } - } else if (domain != NULL) { + } + if (ai == NULL && domain != NULL) { ai=find_auth_info(lc,username,NULL,domain); } if (ai==NULL){