diff --git a/src/detect-geoip.c b/src/detect-geoip.c index 5c6adddd45..aa9da3709a 100644 --- a/src/detect-geoip.c +++ b/src/detect-geoip.c @@ -292,7 +292,7 @@ static DetectGeoipData *DetectGeoipDataParse (char *str) /* Initialize the geolocation engine */ geoipdata->geoengine = InitGeolocationEngine(); - if (geoipdata==NULL) + if (geoipdata->geoengine == NULL) goto error; return geoipdata;