mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Merge branch 'bug21495'
This commit is contained in:
commit
eb01f35149
@ -737,12 +737,12 @@ dirvote_get_intermediate_param_value(const smartlist_t *param_list,
|
|||||||
}
|
}
|
||||||
} SMARTLIST_FOREACH_END(k_v_pair);
|
} SMARTLIST_FOREACH_END(k_v_pair);
|
||||||
|
|
||||||
if (n_found == 1)
|
if (n_found == 1) {
|
||||||
return value;
|
return value;
|
||||||
else if (BUG(n_found > 1))
|
} else {
|
||||||
return default_val;
|
tor_assert_nonfatal(n_found == 0);
|
||||||
else
|
|
||||||
return default_val;
|
return default_val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Minimum number of directory authorities voting for a parameter to
|
/** Minimum number of directory authorities voting for a parameter to
|
||||||
|
Loading…
Reference in New Issue
Block a user