Commit 78d0776c authored by Michael Tremer's avatar Michael Tremer

database: Clear signature length before feeding header into the hash function

Fixes: #12399
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 54f0649f
......@@ -501,6 +501,7 @@ LOC_EXPORT int loc_database_verify(struct loc_database* db, FILE* f) {
for (unsigned int i = 0; i < sizeof(header_v1.signature); i++) {
header_v1.signature[i] = '\0';
}
header_v1.signature_length = 0;
hexdump(db->ctx, &header_v1, sizeof(header_v1));
......
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