mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Merge branch 'maint-0.3.3' into maint-0.3.4
This commit is contained in:
commit
c389c41292
5
changes/bug26435
Normal file
5
changes/bug26435
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Major bugfixes:
|
||||||
|
- Fix a memory leak where directory authorities would leak a chunk
|
||||||
|
of memory for every router descriptor every time they considered
|
||||||
|
voting. This bug was taking down directory authorities due to
|
||||||
|
out-of-memory issues. Fixes bug 26435; bugfix on 0.3.3.6.
|
@ -283,9 +283,12 @@ parse_protocol_list(const char *s)
|
|||||||
bool
|
bool
|
||||||
protover_contains_long_protocol_names(const char *s)
|
protover_contains_long_protocol_names(const char *s)
|
||||||
{
|
{
|
||||||
if (!parse_protocol_list(s))
|
smartlist_t *list = parse_protocol_list(s);
|
||||||
return true;
|
if (!list)
|
||||||
return false;
|
return true; /* yes, has a dangerous name */
|
||||||
|
SMARTLIST_FOREACH(list, proto_entry_t *, ent, proto_entry_free(ent));
|
||||||
|
smartlist_free(list);
|
||||||
|
return false; /* no, looks fine */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user