]> granicus.if.org Git - pdns/commit
geoipbackend: Check GeoIP_id_by_addr_gl and GeoIP_id_by_addr_v6_gl return value
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 27 May 2018 07:34:22 +0000 (10:34 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Mon, 28 May 2018 07:51:40 +0000 (10:51 +0300)
commit3f67497cbee187456ef01a1e5d824f5994e00b65
tree07299fc7ca723976883f9c6376b31be58ebf829c
parentb2cd6cfbf2c73c0a13794dd04d1c9e36fa9886cb
geoipbackend: Check GeoIP_id_by_addr_gl and GeoIP_id_by_addr_v6_gl return value

The return value must be greater than 0, all other indicate lookup failure.
Fixes signal 11 crash.
modules/geoipbackend/geoipbackend.cc