File wireshark-1.2.0-geoip.patch of Package wireshark.5232

--- wireshark-2.2.5.orig/epan/geoip_db.c.orig	2017-03-17 17:35:52.954494697 +0800
+++ wireshark-2.2.5/epan/geoip_db.c	2017-03-17 17:37:00.458915058 +0800
@@ -177,6 +177,9 @@
             geoip_dat_scan_dir(geoip_db_paths[i].path);
         }
     }
+    if (num_geoip_db_paths < 1) {
+        geoip_dat_scan_dir("/var/lib/GeoIP");
+    }
 
     /* add fake databases for latitude and longitude
      * (using "City" in reality) */
openSUSE Build Service is sponsored by