From: Aki Tuomi Date: Fri, 27 Nov 2015 10:27:02 +0000 (+0200) Subject: Do not reset gl->netmask to 0 X-Git-Tag: dnsdist-1.0.0-alpha1~172^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e216e273edf277d3b7df571bd2e41d392965ad9f;p=pdns Do not reset gl->netmask to 0 --- diff --git a/modules/geoipbackend/geoipbackend.cc b/modules/geoipbackend/geoipbackend.cc index db3f55a11..d25ad2b5e 100644 --- a/modules/geoipbackend/geoipbackend.cc +++ b/modules/geoipbackend/geoipbackend.cc @@ -582,7 +582,6 @@ string GeoIPBackend::format2str(string format, const string& ip, bool v6, GeoIPL GeoIPLookup tmp_gl; // largest wins struct tm gtm; gmtime_r(&t, >m); - gl->netmask = 0; last=0; while((cur = format.find("%", last)) != string::npos) {