Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 057b737e authored by Rob Swindell's avatar Rob Swindell 💬

Close stream on error.

Fixes CID 33498
parent b1ad5f2a
......@@ -460,6 +460,7 @@ void synclist(char *inpath, int dirnum)
int result = smb_open_dir(&scfg, &smb, dirnum);
if(result != SMB_SUCCESS) {
fprintf(stderr, "!Error %d (%s) opening %s\n", result, smb.last_error, smb.file);
fclose(stream);
return;
}
size_t file_count;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment