From: Michael Tremer Date: Thu, 14 May 2020 16:19:41 +0000 (+0000) Subject: location-import: Abort when we could not parse the prefix X-Git-Tag: 0.9.1~48 X-Git-Url: http://git.ipfire.org/?p=location%2Flibloc.git;a=commitdiff_plain;h=7177031fa551c7b63afc6d13ac731394ba228f8d location-import: Abort when we could not parse the prefix Signed-off-by: Michael Tremer --- diff --git a/src/python/location-importer.in b/src/python/location-importer.in index f1da3e4..0551cf6 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -422,6 +422,7 @@ class CLI(object): prefix = int(prefix) except: log.warning("Invalid prefix: %s" % prefix) + return # Fix prefix length for IPv4 if type == "ipv4":