Browse Source

Merge remote branch 'sebastian/bug1964' into maint-0.2.2

Nick Mathewson 15 years ago
parent
commit
614eeb378b
2 changed files with 5 additions and 0 deletions
  1. 3 0
      changes/bug1964
  2. 2 0
      src/or/geoip.c

+ 3 - 0
changes/bug1964

@@ -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.

+ 2 - 0
src/or/geoip.c

@@ -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);
 }