Skip to content

Commit

Permalink
Merge pull request clearlinux#62 from popovich-sergei/master
Browse files Browse the repository at this point in the history
update: Compare computed vs expected sha256 digit string ignoring case
  • Loading branch information
ikeydoherty authored Apr 21, 2017
2 parents b205581 + b0426e6 commit cbc2d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static bool nvdcve_data_ok(const char *meta, const char *data)
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);
Expand Down

0 comments on commit cbc2d0e

Please sign in to comment.