summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/meta/cve-update-db-native.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index 25ec6bac71..e5822cee58 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -139,7 +139,12 @@ def parse_node_and_insert(c, node, cveId):
139 for cpe in node.get('cpe_match', ()): 139 for cpe in node.get('cpe_match', ()):
140 if not cpe['vulnerable']: 140 if not cpe['vulnerable']:
141 return 141 return
142 cpe23 = cpe['cpe23Uri'].split(':') 142 cpe23 = cpe.get('cpe23Uri')
143 if not cpe23:
144 return
145 cpe23 = cpe23.split(':')
146 if len(cpe23) < 6:
147 return
143 vendor = cpe23[3] 148 vendor = cpe23[3]
144 product = cpe23[4] 149 product = cpe23[4]
145 version = cpe23[5] 150 version = cpe23[5]