mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
other trivial tweaks
svn:r12614
This commit is contained in:
parent
ac82d81538
commit
ad0fcef576
2 changed files with 3 additions and 3 deletions
|
@ -1269,8 +1269,8 @@ config_get_lines(char *string, config_line_t **result)
|
||||||
}
|
}
|
||||||
if (k && v) {
|
if (k && v) {
|
||||||
/* This list can get long, so we keep a pointer to the end of it
|
/* This list can get long, so we keep a pointer to the end of it
|
||||||
* rather than using config_line_append over and over and getting n^2
|
* rather than using config_line_append over and over and getting
|
||||||
* performance. This is the only really long list. */
|
* n^2 performance. */
|
||||||
*next = tor_malloc(sizeof(config_line_t));
|
*next = tor_malloc(sizeof(config_line_t));
|
||||||
(*next)->key = tor_strdup(k);
|
(*next)->key = tor_strdup(k);
|
||||||
(*next)->value = tor_strdup(v);
|
(*next)->value = tor_strdup(v);
|
||||||
|
|
|
@ -333,7 +333,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
|
||||||
if (!get_via_tor) {
|
if (!get_via_tor) {
|
||||||
if (options->UseBridges && type != BRIDGE_AUTHORITY) {
|
if (options->UseBridges && type != BRIDGE_AUTHORITY) {
|
||||||
/* want to ask a running bridge for which we have a descriptor. */
|
/* want to ask a running bridge for which we have a descriptor. */
|
||||||
/* XXX020 we assume that all of our bridges can answer any
|
/* XXX021 we assume that all of our bridges can answer any
|
||||||
* possible directory question. This won't be true forever. -RD */
|
* possible directory question. This won't be true forever. -RD */
|
||||||
routerinfo_t *ri = choose_random_entry(NULL);
|
routerinfo_t *ri = choose_random_entry(NULL);
|
||||||
if (ri) {
|
if (ri) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue