Verified Commit 46a49531 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

src/lib/uri: fix signature verification

This was causing that long files were not correctly verified. The files
bigger than 2^8 were just considered as broken as size wasn't provided
properly.
parent d891fa94
Pipeline #64463 failed with stages
in 6 minutes and 50 seconds
......@@ -427,7 +427,7 @@ static bool verify_signature(struct uri *uri) {
struct sign_pubkey **pubkeys = list_pubkey_collect(uri->pubkey, 0);
uint8_t *data;
uint8_t data_len;
size_t data_len;
if (uri->data) {
data = uri->data;
data_len = uri->data_len;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment