anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

commit e6b32516c1ff039f97f8bc937e94d0d4fbc35aa1
parent 83e3cb8bbef25701677acb518c1f9b8db33b7f81
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 18 Nov 2026 17:27:43 +0100

fix #12196

Diffstat:
Msrc/reducer/anastasis_api_backup_redux.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/reducer/anastasis_api_backup_redux.c b/src/reducer/anastasis_api_backup_redux.c @@ -1411,6 +1411,15 @@ select_policies (struct PolicyBuilder *pb) "Assessed %u/%u policies\n", pb->evaluations, (unsigned int) MAX_EVALUATIONS); + if (0 == pb->evaluations) + { + /* Some policy has no provider mapping at all, so + find_best_map() never filled in @e best. */ + pb->ec = TALER_EC_ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED; + pb->hint = + "no provider offers all of the selected authentication methods"; + return; + } off = 0; for (struct Policy *p = pb->p_head; NULL != p;