提交 1d28639c authored 作者: Anthony Minessale's avatar Anthony Minessale

revert revert

上级 be1efcc1
...@@ -1197,13 +1197,9 @@ int nua_base_client_check_restart(nua_client_request_t *cr, ...@@ -1197,13 +1197,9 @@ int nua_base_client_check_restart(nua_client_request_t *cr,
cr->cr_challenged = 1; cr->cr_challenged = 1;
if (invalid) { if (!invalid && auc_has_authorization(&nh->nh_auth)) {
/* Bad username/password */ return nua_client_restart(cr, 100, "Request Authorized by Cache");
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");
orq = cr->cr_orq, cr->cr_orq = NULL; orq = cr->cr_orq, cr->cr_orq = NULL;
...@@ -1213,7 +1209,7 @@ int nua_base_client_check_restart(nua_client_request_t *cr, ...@@ -1213,7 +1209,7 @@ int nua_base_client_check_restart(nua_client_request_t *cr,
cr->cr_status = 0, cr->cr_phrase = NULL; cr->cr_status = 0, cr->cr_phrase = NULL;
nua_client_request_unref(cr); nua_client_request_unref(cr);
return 1; return 0;
} }
} }
/* GriGiu : RFC-3261 status supported Retry-After */ /* GriGiu : RFC-3261 status supported Retry-After */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论