mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
e0e8424f1e
4
changes/bug3207
Normal file
4
changes/bug3207
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- Require that onion keys have exponent 65537 in microdescriptors too.
|
||||||
|
Fixes part of bug 3207; bugfix on 0.2.2.25-alpha
|
||||||
|
|
4
changes/bug3213
Normal file
4
changes/bug3213
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Major bugfixes:
|
||||||
|
- Fix a crash bug when changing bridges in a running Tor process.
|
||||||
|
Fixes bug 3213; bugfix on 0.2.2.26-beta.
|
||||||
|
|
@ -4556,7 +4556,7 @@ get_configured_bridge_by_addr_port_digest(const tor_addr_t *addr,
|
|||||||
!tor_addr_compare(&bridge->addr, addr, CMP_EXACT) &&
|
!tor_addr_compare(&bridge->addr, addr, CMP_EXACT) &&
|
||||||
bridge->port == port)
|
bridge->port == port)
|
||||||
return bridge;
|
return bridge;
|
||||||
if (tor_memeq(bridge->identity, digest, DIGEST_LEN))
|
if (digest && tor_memeq(bridge->identity, digest, DIGEST_LEN))
|
||||||
return bridge;
|
return bridge;
|
||||||
}
|
}
|
||||||
SMARTLIST_FOREACH_END(bridge);
|
SMARTLIST_FOREACH_END(bridge);
|
||||||
|
@ -4345,6 +4345,11 @@ microdescs_parse_from_string(const char *s, const char *eos,
|
|||||||
}
|
}
|
||||||
|
|
||||||
tok = find_by_keyword(tokens, K_ONION_KEY);
|
tok = find_by_keyword(tokens, K_ONION_KEY);
|
||||||
|
if (!crypto_pk_public_exponent_ok(tok->key)) {
|
||||||
|
log_warn(LD_DIR,
|
||||||
|
"Relay's onion key had invalid exponent.");
|
||||||
|
goto next;
|
||||||
|
}
|
||||||
md->onion_pkey = tok->key;
|
md->onion_pkey = tok->key;
|
||||||
tok->key = NULL;
|
tok->key = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user