diff --git a/Fix-radeapclient-option-q.patch b/Fix-radeapclient-option-q.patch new file mode 100644 index 0000000000000000000000000000000000000000..4ee11d889273c7336685e4287c55df62354c088a --- /dev/null +++ b/Fix-radeapclient-option-q.patch @@ -0,0 +1,44 @@ +From df1cc6293a43fc304cd72ff4742245563cdc305a Mon Sep 17 00:00:00 2001 +From: htpeng +Date: Thu, 23 Feb 2023 11:26:34 +0800 +Subject: [PATCH] Fix radeapclient option -q + +Signed-off-by: htpeng +--- + src/modules/rlm_eap/radeapclient.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/modules/rlm_eap/radeapclient.c b/src/modules/rlm_eap/radeapclient.c +index cd504a8..8e6c823 100644 +--- a/src/modules/rlm_eap/radeapclient.c ++++ b/src/modules/rlm_eap/radeapclient.c +@@ -1907,8 +1907,6 @@ int main(int argc, char **argv) + .debug_file = NULL, + }; + +- radlog_init(&radclient_log, false); +- + /* + * We probably don't want to free the talloc autofree context + * directly, so we'll allocate a new context beneath it, and +@@ -1946,6 +1944,8 @@ int main(int argc, char **argv) + break; + case 'q': + do_output = 0; ++ radclient_log.dst = L_DST_NULL; ++ radclient_log.fd = 0; + break; + case 'x': + rad_debug_lvl++; +@@ -2021,6 +2021,8 @@ int main(int argc, char **argv) + usage(); + } + ++ radlog_init(&radclient_log, false); ++ + /* Prepare the timeout. */ + rc_float_to_timeval(&tv_timeout, timeout); + +-- +2.34.1 + diff --git a/freeradius.spec b/freeradius.spec index 7d8865fca15b6e58c020d6c00c512550ef5eecec..3570580f124474460dbd1356f1314417ddcadbc3 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -4,7 +4,7 @@ Name: freeradius Version: 3.0.25 -Release: 3 +Release: 4 Summary: Remote Authentication Dial-In User Service License: GPLv2+ and LGPLv2+ @@ -19,6 +19,7 @@ patch0001: CVE-2022-41859.patch patch0002: CVE-2022-41860.patch patch0003: CVE-2022-41861.patch patch0004: CVE-2024-3596.patch +patch0005: Fix-radeapclient-option-q.patch BuildRequires: autoconf gdbm-devel openssl openssl-devel pam-devel zlib-devel net-snmp-devel BuildRequires: net-snmp-utils readline-devel libpcap-devel systemd-units libtalloc-devel @@ -494,6 +495,9 @@ exit 0 %attr(640,root,radiusd) %config(noreplace) /etc/raddb/mods-available/ldap %changelog +* Wed Aug 07 2024 penght - 3.0.25-4 +- Fix radeapclient option -q + * Tue Jul 16 2024 wangkai <13474090681@163.com> - 3.0.25-3 - Fix CVE-2024-3596