mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
Fixed storage of signatures with manifests in a codepath that
was missed in commit 1c72778c50
.
This commit is contained in:
parent
d470ac730b
commit
d685953ff5
@ -66,6 +66,9 @@ int rhizome_bundle_import_files(const char *manifest_path, const char *payload_p
|
||||
else if (rhizome_manifest_verify(m))
|
||||
ret = WHY("Verification of manifest file failed");
|
||||
else {
|
||||
/* Make sure we store signatures */
|
||||
m->manifest_bytes=m->manifest_all_bytes;
|
||||
|
||||
m->dataFileName = strdup(payload_path);
|
||||
if (rhizome_manifest_check_file(m))
|
||||
ret = WHY("Payload does not belong to manifest");
|
||||
|
@ -1465,8 +1465,6 @@ int rhizome_import_from_files(const char *manifestpath,const char *filepath)
|
||||
} else {
|
||||
/* Make sure we store signatures */
|
||||
m->manifest_bytes=m->manifest_all_bytes;
|
||||
DEBUGF("selfsignedP=%d",
|
||||
rhizome_is_self_signed(m));
|
||||
|
||||
/* Add the manifest and its associated file to the Rhizome database. */
|
||||
m->dataFileName = strdup(filepath);
|
||||
|
Loading…
Reference in New Issue
Block a user