Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions services/virus_scan/virus_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,12 @@ int virus_scan_check_preview_handler(char *preview_data, int preview_data_len,
}

if (!data->engine[0]) {
ci_debug_printf(1, "Antivirus engine is not available, allow 204\n");
return CI_MOD_ALLOW204;
if (PASSONERROR) {
ci_debug_printf(1, "Antivirus engine is not available, allow 204 due to PassOnError\n");
return CI_MOD_ALLOW204;
}
ci_debug_printf(1, "Antivirus engine is not available.\n");
return CI_ERROR;
}

/*Compute the expected size, will be used by must_scanned*/
Expand Down