mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-03-23 12:25:19 +00:00
fixed bug in duplicate detection
This commit is contained in:
parent
04cc05d6e1
commit
c2dfefe764
@ -35,7 +35,7 @@ int rhizome_manifest_verify(rhizome_manifest *m)
|
||||
crypto_hash_sha512(m->manifesthash,m->manifestdata,end_of_text);
|
||||
|
||||
/* Read signature blocks from file. */
|
||||
int ofs=end_of_text;
|
||||
int ofs=end_of_text;
|
||||
while(ofs<m->manifest_all_bytes) {
|
||||
if (debug & DEBUG_RHIZOME) DEBUGF("ofs=0x%x, m->manifest_bytes=0x%x", ofs,m->manifest_all_bytes);
|
||||
if (rhizome_manifest_extract_signature(m,&ofs)) break;
|
||||
|
@ -964,7 +964,7 @@ int rhizome_find_duplicate(const rhizome_manifest *m, rhizome_manifest **found,
|
||||
}
|
||||
if (rhizome_read_manifest_file(blob_m, manifestblob, manifestblobsize) == -1) {
|
||||
WARNF("MANIFESTS row id=%s has invalid manifest blob -- skipped", q_manifestid);
|
||||
} else if (rhizome_manifest_verify(m)) {
|
||||
} else if (rhizome_manifest_verify(blob_m)) {
|
||||
WARNF("MANIFESTS row id=%s fails verification -- skipped", q_manifestid);
|
||||
} else {
|
||||
const char *blob_service = rhizome_manifest_get(blob_m, "service", NULL, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user