Commit f7f5d9681 for clamav.net

commit f7f5d96816e40df25581bd8520523832af66ceae
Author: Val S. <valsnyde@cisco.com>
Date:   Wed Aug 19 19:07:31 2026 -0400

    FreshClam: use the configured outdated hook in daemon mode (#1770)

    FreshClam's non-daemon update path passes OnOutdatedExecute to the database update helper when the outdated-version hook is enabled. The daemon update loop checked the OnOutdatedExecute option but accidentally passed the OnUpdateExecute command string instead.

    This could cause daemon-mode outdated-version events to run the update hook, or to run no hook when only OnOutdatedExecute was configured. Pass the OnOutdatedExecute command string in the daemon path so both update modes use the same hook selection.

    Credit: Nir Yehoshua, Cipher Security Labs

    CLAM-3025

diff --git a/freshclam/freshclam.c b/freshclam/freshclam.c
index 8c6d9f611..8b7b60ec0 100644
--- a/freshclam/freshclam.c
+++ b/freshclam/freshclam.c
@@ -2092,7 +2092,7 @@ int main(int argc, char **argv)
                 bPrivate ? 0 : optget(opts, "ScriptedUpdates")->enabled,
                 bPrune,
                 optget(opts, "OnUpdateExecute")->enabled ? optget(opts, "OnUpdateExecute")->strarg : NULL,
-                optget(opts, "OnOutdatedExecute")->enabled ? optget(opts, "OnUpdateExecute")->strarg : NULL,
+                optget(opts, "OnOutdatedExecute")->enabled ? optget(opts, "OnOutdatedExecute")->strarg : NULL,
                 optget(opts, "daemon")->enabled,
                 optget(opts, "NotifyClamd")->active ? optget(opts, "NotifyClamd")->strarg : NULL,
                 &fc_context);