]> granicus.if.org Git - pdns/commitdiff
Do not reset gl->netmask to 0
authorAki Tuomi <cmouse@cmouse.fi>
Fri, 27 Nov 2015 10:27:02 +0000 (12:27 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Fri, 27 Nov 2015 10:27:02 +0000 (12:27 +0200)
modules/geoipbackend/geoipbackend.cc

index db3f55a11f2098ebdee22429ac3a14b39c767b9f..d25ad2b5e3d7720b1f51244f1b4cb703cdfd3dcc 100644 (file)
@@ -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, &gtm);
-  gl->netmask = 0;
   last=0;
 
   while((cur = format.find("%", last)) != string::npos) {