]> granicus.if.org Git - pdns/commit
auth: geoip - forbid 0 as weight value
authorBaptiste Courtois <b.courtois@criteo.com>
Mon, 26 Nov 2018 18:13:57 +0000 (19:13 +0100)
committerBaptiste Courtois <b.courtois@criteo.com>
Mon, 26 Nov 2018 18:13:57 +0000 (19:13 +0100)
commit5af685a9c5353caec9002372420911c8a5079ea5
tree72f8e968af348488bda17cb330ec3aa13fd877ea
parenta41c5c9b305a89d5e61ce7515912a55c7f775a6a
auth: geoip - forbid 0 as weight value

In the case where the weight of all records is set to zero, former code
was trying to compute probability by dividing by 0.

Another motivation to forbid the use of the "zero" weight is that the
desired behavior was not clear.
docs/backends/geoip.rst
modules/geoipbackend/geoipbackend.cc