mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge branch 'maint-0.3.2'
This commit is contained in:
commit
f7707c9031
3
changes/bug23874
Normal file
3
changes/bug23874
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor bugfixes (memory safety):
|
||||||
|
- Clear the address when node_get_prim_orport() returns early.
|
||||||
|
Fixes bug 23874; bugfix on 0.2.8.2-alpha.
|
@ -1435,6 +1435,11 @@ node_get_prim_orport(const node_t *node, tor_addr_port_t *ap_out)
|
|||||||
node_assert_ok(node);
|
node_assert_ok(node);
|
||||||
tor_assert(ap_out);
|
tor_assert(ap_out);
|
||||||
|
|
||||||
|
/* Clear the address, as a safety precaution if calling functions ignore the
|
||||||
|
* return value */
|
||||||
|
tor_addr_make_null(&ap_out->addr, AF_INET);
|
||||||
|
ap_out->port = 0;
|
||||||
|
|
||||||
/* Check ri first, because rewrite_node_address_for_bridge() updates
|
/* Check ri first, because rewrite_node_address_for_bridge() updates
|
||||||
* node->ri with the configured bridge address. */
|
* node->ri with the configured bridge address. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user