fixed segfault bug in rhizome fetch.

(serval-node/import directory needs to exist to fetch files,
 maybe the code should just make the directory if not present)
This commit is contained in:
gardners 2012-05-11 19:07:27 +09:30
parent c448eab720
commit cd65e47be1

View File

@ -370,9 +370,10 @@ int rhizome_queue_manifest_import(rhizome_manifest *m,
if (debug&DEBUG_RHIZOME)
fprintf(stderr,"Could not open '%s' to write received file.\n",
filename);
} else {
rhizome_file_fetch_queue_count++;
if (debug&DEBUG_RHIZOME) fprintf(stderr,"Queued file for fetching\n");
}
rhizome_file_fetch_queue_count++;
if (debug&DEBUG_RHIZOME) fprintf(stderr,"Queued file for fetching\n");
return 0;
}
else