Coverity 1038518: fix wrong error check

pull/401/merge
Victor Julien 12 years ago
parent db1dad8cc6
commit 0902c7f3aa

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

Loading…
Cancel
Save