Fixed storage of signatures with manifests in a codepath that

was missed in commit 1c72778c50.
This commit is contained in:
gardners 2012-10-05 05:53:11 +02:00
parent d470ac730b
commit d685953ff5
2 changed files with 3 additions and 2 deletions

View File

@ -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");

View File

@ -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);