Skip to content

Commit

Permalink
Fix a crash in scan files (when file or dir doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknght committed Oct 27, 2024
1 parent 0a750ec commit 9901e81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scanners/scanners.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ proc scanners_cl_scan_files*(scan_ctx: var ScanCtx, list_path_objects: seq[strin
fscanner_scan_file(file_scanner, each_scan_object, virname, scanned)
except KeyboardInterrupt:
return
except:
discard
finally:
result_count = file_scanner.file_scanned
result_infect = file_scanner.file_infected
Expand Down

0 comments on commit 9901e81

Please sign in to comment.