]> git.ipfire.org Git - thirdparty/pdns.git/commit
geoipbackend: Make sure initial netmask is not too wide
authorAki Tuomi <cmouse@cmouse.fi>
Tue, 8 May 2018 17:07:47 +0000 (20:07 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 8 May 2018 17:16:22 +0000 (20:16 +0300)
commit86f6a8e45369c15a388d436295a29b58583ff7b3
treed2ec38ea151010b8d38c30586883b03e65873e17
parent22c10c43fe66ea8b6f287edff3f59e63688808bc
geoipbackend: Make sure initial netmask is not too wide

Otherwise cache will be "poisoned" with too wide value, rendering
the geoip functionality useless.

Fixes #6584, found by @blop
modules/geoipbackend/geoipbackend.cc