mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Minor optimization: Don't set parent's "don't cache" to match child
Don't set the parent layer's "don't cache" flag to match the child. `emax_reached()` already does the same thing so doing it again is unnecessary.
This commit is contained in:
parent
35ff4fed90
commit
cec59d79c9
1 changed files with 0 additions and 4 deletions
|
@ -803,10 +803,6 @@ cl_error_t cli_scan_desc(int desc, cli_ctx *ctx, cli_file_t ftype, bool filetype
|
|||
|
||||
status = cli_scan_fmap(ctx, ftype, filetype_only, ftoffset, acmode, acres, NULL);
|
||||
|
||||
map->dont_cache_flag = ctx->fmap->dont_cache_flag; /* Set the parent layer's "don't cache" flag to match the child.
|
||||
TODO: This may not be needed since `emax_reached()` should've
|
||||
already done that for us. */
|
||||
|
||||
(void)cli_recursion_stack_pop(ctx); /* Restore the parent fmap */
|
||||
|
||||
done:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue