From c223c2f8c0760c33327609da23a9bb524acbd139 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Fri, 24 May 2013 10:50:14 +0200 Subject: [PATCH] fix case where auth is present but there neither passwd nor ha1 --- coreapi/bellesip_sal/sal_op_registration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/bellesip_sal/sal_op_registration.c b/coreapi/bellesip_sal/sal_op_registration.c index 58f1dc634..d4226ef3f 100644 --- a/coreapi/bellesip_sal/sal_op_registration.c +++ b/coreapi/bellesip_sal/sal_op_registration.c @@ -68,7 +68,7 @@ static void register_refresher_listener ( const belle_sip_refresher_t* refresher if (op->auth_info) { /*add pending auth*/ sal_add_pending_auth(op->base.root,op); - if (status_code == 403) { /*in sase of 401 or 407, auth requested already invoked previouly*/ + if (status_code == 403 || status_code == 401 || status_code == 407) { /*in case of 401 or 407, auth requested already invoked previously but maybe*/ /*auth previouly pending, probably wrong pasword, give a chance to authenticate again*/ op->base.root->callbacks.auth_failure(op,op->auth_info); /*fixme*/ }