mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 14:07:53 +00:00
Log warning if meshms ply failed to open
This commit is contained in:
parent
f5fa988fcf
commit
42f139215d
7
meshms.c
7
meshms.c
@ -221,8 +221,11 @@ static int ply_read_open(struct ply_read *ply, const char *id, rhizome_manifest
|
|||||||
DEBUGF("Opening ply %s", id);
|
DEBUGF("Opening ply %s", id);
|
||||||
if (rhizome_retrieve_manifest(id, m))
|
if (rhizome_retrieve_manifest(id, m))
|
||||||
return -1;
|
return -1;
|
||||||
if (rhizome_open_decrypt_read(m, NULL, &ply->read))
|
int ret = rhizome_open_decrypt_read(m, NULL, &ply->read);
|
||||||
return -1;
|
if (ret>0)
|
||||||
|
WARNF("Payload was not found for manifest %s", alloca_tohex_bid(m->cryptoSignPublic));
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
ply->read.offset = ply->read.length = m->fileLength;
|
ply->read.offset = ply->read.length = m->fileLength;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user