From 0902c7f3aaa89aab0da302ab50b89aea02626448 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 25 Jun 2013 17:00:45 +0200 Subject: [PATCH] Coverity 1038518: fix wrong error check --- src/detect-geoip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;