]> git.ipfire.org Git - location/libloc.git/commit
location-importer.in: filter bogus IP networks for both Whois and extended sources
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 21 Oct 2020 14:47:39 +0000 (14:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Oct 2020 17:31:41 +0000 (17:31 +0000)
commitbd341642fc6bbcc050e9b4ec5124585c83cab84d
treec2896495b10c23aa98290aef52ae8a3cdf65ff13
parent28c73fa3f4257e0a41e52af8a9643da414a6cb6f
location-importer.in: filter bogus IP networks for both Whois and extended sources

Sanity checks for parsed networks have been put into a separate function
to avoid boilerplate code for extended sources. This makes the location
database less vulnerable to garbage written into RIR databases on
purpose or by chance.

Fixes: #12500
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-importer.in