fix case where auth is present but there neither passwd nor ha1

This commit is contained in:
Jehan Monnier 2013-05-24 10:50:14 +02:00
parent c0336c8597
commit c223c2f8c0

View file

@ -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*/
}