resolves: bug#1068798 (fedora 1068795)
rlm_perl attribute values truncated
This commit is contained in:
parent
695482aab2
commit
700c3a939c
19
freeradius-perl.patch
Normal file
19
freeradius-perl.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
commit 57d0db0e1dfa3fc25d0bfc146fec1c89a446a9ea
|
||||||
|
Author: Alan T. DeKok <aland@freeradius.org>
|
||||||
|
Date: Wed Jan 22 15:11:33 2014 -0500
|
||||||
|
|
||||||
|
Use size out output buffer, not size of output pointer
|
||||||
|
|
||||||
|
diff --git a/src/lib/print.c b/src/lib/print.c
|
||||||
|
index a6e5391..5bc5e02 100644
|
||||||
|
--- a/src/lib/print.c
|
||||||
|
+++ b/src/lib/print.c
|
||||||
|
@@ -266,7 +266,7 @@ size_t vp_prints_value(char *out, size_t outlen, VALUE_PAIR const *vp, int8_t qu
|
||||||
|
return strlen(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return fr_print_string(vp->vp_strvalue, vp->length, out, sizeof(out));
|
||||||
|
+ return fr_print_string(vp->vp_strvalue, vp->length, out, outlen);
|
||||||
|
|
||||||
|
case PW_TYPE_INTEGER:
|
||||||
|
if (vp->da->flags.has_tag) {
|
@ -1,7 +1,7 @@
|
|||||||
Summary: High-performance and highly configurable free RADIUS server
|
Summary: High-performance and highly configurable free RADIUS server
|
||||||
Name: freeradius
|
Name: freeradius
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.freeradius.org/
|
URL: http://www.freeradius.org/
|
||||||
@ -26,6 +26,7 @@ Patch2: freeradius-postgres-sql.patch
|
|||||||
Patch3: freeradius-ippool.patch
|
Patch3: freeradius-ippool.patch
|
||||||
Patch4: freeradius-imacros.patch
|
Patch4: freeradius-imacros.patch
|
||||||
Patch5: freeradius-mysql-schema.patch
|
Patch5: freeradius-mysql-schema.patch
|
||||||
|
Patch6: freeradius-perl.patch
|
||||||
|
|
||||||
%global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
%global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
@ -180,13 +181,14 @@ This plugin provides the unixODBC support for the FreeRADIUS server project.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{dist_base}
|
%setup -q -n %{dist_base}
|
||||||
# Note: We explicitly do not make patch backup files because the build
|
# Note: We explicitly do not make patch backup files because 'make install'
|
||||||
# mistakenly include these files, especially problematic for raddb config files.
|
# mistakenly includes the backup files, especially problematic for raddb config files.
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Force compile/link options, extra security for network facing daemon
|
# Force compile/link options, extra security for network facing daemon
|
||||||
@ -748,6 +750,10 @@ exit 0
|
|||||||
%{_libdir}/freeradius/rlm_sql_unixodbc.so
|
%{_libdir}/freeradius/rlm_sql_unixodbc.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 21 2014 John Dennis <jdennis@redhat.com> - 3.0.1-3
|
||||||
|
- resolves: bug#1068798 (fedora 1068795)
|
||||||
|
rlm_perl attribute values truncated
|
||||||
|
|
||||||
* Sun Jan 19 2014 John Dennis <jdennis@redhat.com> - 3.0.1-2
|
* Sun Jan 19 2014 John Dennis <jdennis@redhat.com> - 3.0.1-2
|
||||||
- resolves: bug#1055073 (fedora 1055072)
|
- resolves: bug#1055073 (fedora 1055072)
|
||||||
rlm_ippool; bad config file attribute and fails to send reply attributes
|
rlm_ippool; bad config file attribute and fails to send reply attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user