summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Tropf <asym@gentoo.org>2009-11-14 12:20:41 +0100
committerBjoern Tropf <asym@gentoo.org>2009-11-14 12:20:41 +0100
commit9e8902084452e82e632f85de2536f804bdc4d86c (patch)
tree831d0b4717ac397c1a91e15827882a6864efa781
parentImplement a NOCVE dictionary (diff)
downloadkernel-check-9e8902084452e82e632f85de2536f804bdc4d86c.tar.gz
kernel-check-9e8902084452e82e632f85de2536f804bdc4d86c.tar.bz2
kernel-check-9e8902084452e82e632f85de2536f804bdc4d86c.zip
Fix small bug
-rw-r--r--lib/kernellib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernellib.py b/lib/kernellib.py
index 6f91ce5..cf2e6ab 100644
--- a/lib/kernellib.py
+++ b/lib/kernellib.py
@@ -547,7 +547,7 @@ def read_cve_file(directory, bugid):
'severity', 'score', 'vector']:
element = item.find(elem)
if element is not None:
- setattr(cve, elem, item.find(elem).text)
+ setattr(cve, elem, element.text)
else:
BUG_ON(filename, '(%s, \'No such element\')' % elem)