summaryrefslogtreecommitdiff
path: root/system/cve-check-tool/update-fmt.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/cve-check-tool/update-fmt.diff')
-rw-r--r--system/cve-check-tool/update-fmt.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/cve-check-tool/update-fmt.diff b/system/cve-check-tool/update-fmt.diff
new file mode 100644
index 0000000000..9c75a9b587
--- /dev/null
+++ b/system/cve-check-tool/update-fmt.diff
@@ -0,0 +1,11 @@
+--- a/src/update.c 2017-07-15 11:15:33.823135795 +0300
++++ b/src/update.c 2017-07-15 11:16:16.063133913 +0300
+@@ -188,7 +188,7 @@ static bool nvdcve_data_ok(const char *m
+ snprintf(&csum_data[idx], len, "%02hhx", digest[i]);
+ }
+
+- ret = streq(csum_meta, csum_data);
++ ret = !strcasecmp(csum_meta, csum_data);
+
+ err_unmap:
+ munmap(buffer, length);