From a302e5f822473ce210d3b8b3e3f424392cd493aa Mon Sep 17 00:00:00 2001 From: Lee Valentine Date: Wed, 19 Mar 2014 21:47:03 +0000 Subject: [PATCH] Updated not_found --- ngx_http_geoip2_module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ngx_http_geoip2_module.c b/ngx_http_geoip2_module.c index 8ace9c0..d4e4d41 100644 --- a/ngx_http_geoip2_module.c +++ b/ngx_http_geoip2_module.c @@ -213,10 +213,9 @@ not_found: v->valid = 1; v->no_cacheable = 0; v->not_found = 0; - - return NGX_OK; + } else { + v->not_found = 1; } - v->not_found = 1; return NGX_OK; }