Skip to content

Commit

Permalink
Merge pull request #1398 from micahsnyder/CLAM-2712-freshclam-databas…
Browse files Browse the repository at this point in the history
…ecustomurl-prune-bug

Freshclam: fix crash when using DatabaseCustomURL for CVD and other files
  • Loading branch information
micahsnyder authored Jan 12, 2025
2 parents 8a48e9e + 163fbdb commit 86a3835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freshclam/freshclam.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ fc_error_t perform_database_update(
const char *startOfFilename = strrchr(urlDatabaseList[i], '/') + 1;
if (NULL != startOfFilename) {
// Add the base database name to the do-not-prune list, excluding the '.cvd' extension.
doNotPruneDatabaseList[nDatabases + i] = CLI_STRNDUP(startOfFilename, strlen(startOfFilename) - strlen(".cvd"));
doNotPruneDatabaseList[nDoNotPruneDatabases] = CLI_STRNDUP(startOfFilename, strlen(startOfFilename) - strlen(".cvd"));
nDoNotPruneDatabases++;
}
}
Expand Down

0 comments on commit 86a3835

Please sign in to comment.