ports/92887: [patch] net/freeradius Dictionary bug on x64
alessandro.dellavedova at ifom-ieo-campus.it
alessandro.dellavedova at ifom-ieo-campus.it
Mon Feb 6 12:40:05 UTC 2006
>Number: 92887
>Category: ports
>Synopsis: [patch] net/freeradius Dictionary bug on x64
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 06 12:40:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Alessandro Dellavedova <alessandro.dellavedova at gmail.com>
>Release: FreeBSD 5.4-RELEASE-p8 amd64
>Organization:
European Institute of Oncology
>Environment:
System: FreeBSD radiustest 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: Tue Dec 27 12:14:23 CET 2005 root at caino.ieo-research.it:/usr/obj/usr/src/sys/CAINO amd64
>Description:
Fixes a bug on 64 bit arch reported as bug 312 on freeradius bug reporting system (http://bugs.freeradius.org/show_bug.cgi?id=312)
>How-To-Repeat:
>Fix:
--- freeradius.patch begins here ---
diff -ruN /usr/ports/net/freeradius/Makefile /root/freeradius/Makefile
--- /usr/ports/net/freeradius/Makefile Mon Feb 6 10:11:59 2006
+++ /root/freeradius/Makefile Mon Feb 6 10:58:52 2006
@@ -7,6 +7,7 @@
PORTNAME= freeradius
PORTVERSION= 1.1.0
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
http://freeradius.portal-to-web.de/ \
diff -ruN /usr/ports/net/freeradius/files/patch-src-lib-dict.c /root/freeradius/files/patch-src-lib-dict.c
--- /usr/ports/net/freeradius/files/patch-src-lib-dict.c Thu Jan 1 01:00:00 1970
+++ /root/freeradius/files/patch-src-lib-dict.c Mon Feb 6 10:16:58 2006
@@ -0,0 +1,11 @@
+--- src/lib/dict.c.orig Mon Feb 6 10:15:41 2006
++++ src/lib/dict.c Mon Feb 6 10:16:07 2006
+@@ -1207,7 +1207,7 @@
+ if (!name) return NULL;
+
+ hash = dict_hashname(name);
+- hash = lrad_hash_update(&attr, sizeof(&attr), hash);
++ hash = lrad_hash_update(&attr, sizeof(attr), hash);
+
+ return lrad_hash_table_finddata(values_byname, hash);
+ }
--- freeradius.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list