Skip to content
Snippets Groups Projects
Commit d7ed70e4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

user_downloaded_file() now return false upon statistics update failure

parent 9bbfacaa
No related branches found
No related tags found
No related merge requests found
......@@ -2924,11 +2924,12 @@ bool user_downloaded_file(scfg_t* cfg, user_t* user, client_t* client,
if(!is_download_free(cfg, dirnum, user, client))
subtract_cdt(cfg, user, f.cost);
bool result = true;
if(!(cfg->dir[dirnum]->misc&DIR_NOSTAT))
inc_download_stats(cfg, /* files: */1, bytes);
result = inc_download_stats(cfg, /* files: */1, bytes);
smb_freefilemem(&f);
return true;
return result;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment