Fixed mispelled word

This commit is contained in:
Luca Deri
2021-03-31 12:52:54 +02:00
parent 2b84f28df5
commit 48726301e1
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1547,9 +1547,9 @@ extern "C" {
/* ******************************* */ /* ******************************* */
int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str,
const char *ip_city_data, const char *ip_as_data); const char *ip_city_data, const char *ip_as_data);
void ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str); void ndpi_free_geoip(struct ndpi_detection_module_struct *ndpi_str);
int ndpi_get_geoip(struct ndpi_detection_module_struct *ndpi_str, char *ip, int ndpi_get_geoip(struct ndpi_detection_module_struct *ndpi_str, char *ip,
u_int32_t *asn, char *country_code, u_int8_t country_code_len); u_int32_t *asn, char *country_code, u_int8_t country_code_len);
+2 -2
View File
@@ -35,7 +35,7 @@
/* ********************************************************************************* */ /* ********************************************************************************* */
int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str, int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str,
const char *ip_city_data, const char *ip_as_data) { const char *ip_city_data, const char *ip_as_data) {
#ifdef HAVE_MAXMINDDB #ifdef HAVE_MAXMINDDB
int status; int status;
@@ -59,7 +59,7 @@ int ndpi_load_geeoip(struct ndpi_detection_module_struct *ndpi_str,
/* ********************************************************************************* */ /* ********************************************************************************* */
void ndpi_free_geeoip(struct ndpi_detection_module_struct *ndpi_str) { void ndpi_free_geoip(struct ndpi_detection_module_struct *ndpi_str) {
#ifdef HAVE_MAXMINDDB #ifdef HAVE_MAXMINDDB
if(ndpi_str->mmdb_city_loaded) MMDB_close(&ndpi_str->mmdb_city); if(ndpi_str->mmdb_city_loaded) MMDB_close(&ndpi_str->mmdb_city);
if(ndpi_str->mmdb_as_loaded) MMDB_close(&ndpi_str->mmdb_as); if(ndpi_str->mmdb_as_loaded) MMDB_close(&ndpi_str->mmdb_as);
+1 -1
View File
@@ -2613,7 +2613,7 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) {
#include "../../../nDPI-custom/ndpi_exit_detection_module.c" #include "../../../nDPI-custom/ndpi_exit_detection_module.c"
#endif #endif
ndpi_free_geeoip(ndpi_str); ndpi_free_geoip(ndpi_str);
ndpi_free(ndpi_str); ndpi_free(ndpi_str);
} }