mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
apply sebastian's bug 867 fix: make routerset_equal() work as documented with NULL arguments
svn:r17287
This commit is contained in:
parent
b4a90cfb7f
commit
0fa698d84f
@ -11,7 +11,9 @@ Changes in version 0.2.1.8-alpha - 2008-??-??
|
||||
- Made Tor a little less aggressive about deleting expired certificates.
|
||||
Partial fix for bug 854.
|
||||
- Stop doing unaligned memory access that generated bus errors on
|
||||
sparc64. Fix for bug 862.
|
||||
sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
|
||||
- Fix a crash bug when changing ExcludeNodes from the controller. Bugfix
|
||||
on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
|
||||
|
||||
o Minor features (controller):
|
||||
- Return circuit purposes in response to GETINFO circuit-status. Fixes
|
||||
|
@ -5100,6 +5100,11 @@ routerset_to_string(const routerset_t *set)
|
||||
int
|
||||
routerset_equal(const routerset_t *old, const routerset_t *new)
|
||||
{
|
||||
if (old == NULL && new == NULL)
|
||||
return 1;
|
||||
else if (old == NULL || new == NULL)
|
||||
return 0;
|
||||
|
||||
if (smartlist_len(old->list) != smartlist_len(new->list))
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user