Skip to content
Snippets Groups Projects
Verified Commit 9cfc7e17 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Tomas Krizek
Browse files

lib/selection*: trivial undefined-behavior fix

parent 65adf9f4
No related branches found
No related tags found
1 merge request!1167various undefined-behavior fixes
......@@ -240,7 +240,7 @@ void iter_choose_transport(struct kr_query *qry, struct kr_transport **transport
unpack_state_from_zonecut(local_state, qry);
struct choice choices[trie_weight(local_state->addresses)];
struct choice choices[trie_weight(local_state->addresses) + 1/*avoid 0*/];
/* We may try to resolve A and AAAA record for each name, so therefore
* 2*trie_weight(…) is here. */
struct to_resolve resolvable[2 * trie_weight(local_state->names)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment