ver-chk: fix admin-filter (closes #1363);

also drop cache if json invalid
This commit is contained in:
ed 2026-03-12 00:33:26 +01:00
parent 8a9066c35c
commit 6eb4f0ad9c
2 changed files with 5 additions and 1 deletions

View file

@ -5644,7 +5644,7 @@ class HttpCli(object):
no304vis=self.args.no304 > 0, no304vis=self.args.no304 > 0,
msg=( msg=(
BADVER BADVER
if self.conn.hsrv.bad_ver and self.can_admin if self.conn.hsrv.bad_ver and avol
else BADXFFB else BADXFFB
if hasattr(self, "bad_xff") if hasattr(self, "bad_xff")
else "" else ""

View file

@ -1871,3 +1871,7 @@ class SvcHub(object):
except Exception as e: except Exception as e:
t = "failed to process vulnerability advisory; %s" t = "failed to process vulnerability advisory; %s"
self.log("ver-chk", t % (min_ex()), 1) self.log("ver-chk", t % (min_ex()), 1)
try:
os.unlink(fpath)
except:
pass