mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Fix a bridge segfault
When we enabled support to change statistic options without restarting Tor we forgot to initialize geoip_countries. Fix that.
This commit is contained in:
parent
e385961542
commit
c951830002
3
changes/bug1964
Normal file
3
changes/bug1964
Normal file
@ -0,0 +1,3 @@
|
||||
o Major bugfixes:
|
||||
- Fix a segfault that can happen when using bridges. Fixes bug 1964;
|
||||
bugfix on 0.2.2.15-alpha.
|
@ -254,6 +254,8 @@ geoip_get_country_by_ip(uint32_t ipaddr)
|
||||
int
|
||||
geoip_get_n_countries(void)
|
||||
{
|
||||
if (!geoip_countries)
|
||||
init_geoip_countries();
|
||||
return (int) smartlist_len(geoip_countries);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user