mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
Maybe fix cause of SEGV bug
Was caused when we ran out of manifest structs
This commit is contained in:
parent
0ec3feaa29
commit
e74b9e1d6b
@ -343,8 +343,12 @@ int overlay_rhizome_saw_advertisements(int i,overlay_frame *f, long long now)
|
||||
*/
|
||||
m=rhizome_read_manifest_file((char *)&f->payload->bytes[ofs],
|
||||
manifest_length,RHIZOME_DONTVERIFY);
|
||||
if (!m) {
|
||||
WHY("Out of manifests");
|
||||
return 0;
|
||||
}
|
||||
/* Crude signature presence test */
|
||||
for(i=m->manifest_all_bytes-1;i>0;i++)
|
||||
for(i=m->manifest_all_bytes-1;i>0;i--)
|
||||
if (!m->manifestdata[i]) {
|
||||
/* A null in the middle says we have a signature */
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user