Skip to content
Snippets Groups Projects
Commit a9724192 authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'nsrep-bugfix' into 'master'

nsrep: allow inclusion of good nameservers if there's space in selection

See merge request !787
parents 768ecc0d 196ebd4f
1 merge request!787nsrep: allow inclusion of good nameservers if there's space in selection
Pipeline #46609 failed with stages
in 9 minutes and 48 seconds
......@@ -262,7 +262,7 @@ static int eval_nsrep(const knot_dname_t *owner, const pack_t *addr_set, struct
update_nsrep_set(ns, owner, addr_choice, score);
ns->reputation = reputation;
return 1; /* Stop evaluation */
} else if (ns->score > KR_NS_MAX_SCORE) {
} else if (ns->score > KR_NS_MAX_SCORE || addr_choice[KR_NSREP_MAXADDR - 1] == NULL) {
/* Check if any server was already selected.
* If no, pick current server and continue evaluation. */
update_nsrep_set(ns, owner, addr_choice, score);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment