revert revert

This commit is contained in:
Anthony Minessale 2014-03-17 16:15:59 -05:00
parent be1efcc1fa
commit 1d28639cac
1 changed files with 4 additions and 8 deletions

View File

@ -1197,13 +1197,9 @@ int nua_base_client_check_restart(nua_client_request_t *cr,
cr->cr_challenged = 1;
if (invalid) {
/* Bad username/password */
SU_DEBUG_7(("nua(%p): bad credentials, clearing them\n", (void *)nh));
auc_clear_credentials(&nh->nh_auth, NULL, NULL);
}
else if (auc_has_authorization(&nh->nh_auth))
return nua_client_restart(cr, 100, "Request Authorized by Cache");
if (!invalid && auc_has_authorization(&nh->nh_auth)) {
return nua_client_restart(cr, 100, "Request Authorized by Cache");
}
orq = cr->cr_orq, cr->cr_orq = NULL;
@ -1213,7 +1209,7 @@ int nua_base_client_check_restart(nua_client_request_t *cr,
cr->cr_status = 0, cr->cr_phrase = NULL;
nua_client_request_unref(cr);
return 1;
return 0;
}
}
/* GriGiu : RFC-3261 status supported Retry-After */