aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2015-04-28 21:36:55 +0800
committerfeld <feld@FreeBSD.org>2015-04-28 21:36:55 +0800
commit3c3577c34dd0cf8dee05c9a2c017bfe046d2e4a7 (patch)
tree2f3fd9377306d8a1fa335d8950f5eafd048f30c8 /www
parent2a8c04120913921554e2f04ef8d638ab0e1eea2b (diff)
downloadfreebsd-ports-gnome-3c3577c34dd0cf8dee05c9a2c017bfe046d2e4a7.tar.gz
freebsd-ports-gnome-3c3577c34dd0cf8dee05c9a2c017bfe046d2e4a7.tar.zst
freebsd-ports-gnome-3c3577c34dd0cf8dee05c9a2c017bfe046d2e4a7.zip
Include high availability patch to give us feature parity with Linux
distros which include this patch in their packages for many years now. PR: 198498
Diffstat (limited to 'www')
-rw-r--r--www/mod_auth_xradius/Makefile2
-rw-r--r--www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c30
2 files changed, 31 insertions, 1 deletions
diff --git a/www/mod_auth_xradius/Makefile b/www/mod_auth_xradius/Makefile
index 33c7b7d09fde..7792fb77c319 100644
--- a/www/mod_auth_xradius/Makefile
+++ b/www/mod_auth_xradius/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mod_auth_xradius
PORTVERSION= 0.4.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.outoforder.cc/downloads/mod_auth_xradius/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
diff --git a/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c b/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c
new file mode 100644
index 000000000000..c48fdda9a160
--- /dev/null
+++ b/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c
@@ -0,0 +1,30 @@
+--- src/mod_auth_xradius.c.orig 2005-04-28 07:58:25 UTC
++++ src/mod_auth_xradius.c
+@@ -125,15 +125,15 @@ static int xrad_run_auth_check(request_r
+ rctx = xrad_auth_open();
+
+ /* Loop through the array of RADIUS Servers, adding them to the rctx object */
+- sr = (xrad_server_info *) dc->servers->elts;
+ for (i = 0; i < dc->servers->nelts; ++i) {
+- rc = xrad_add_server(rctx, sr[i].hostname, sr[i].port, sr[i].secret,
++ sr = &(((xrad_server_info*)dc->servers->elts)[i]);
++ rc = xrad_add_server(rctx, sr->hostname, sr->port, sr->secret,
+ dc->timeout, dc->maxtries);
+
+ if (rc != 0) {
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
+ "xradius: Failed to add server '%s:%d': (%d) %s",
+- sr[i].hostname, sr[i].port, rc, xrad_strerror(rctx));
++ sr->hostname, sr->port, rc, xrad_strerror(rctx));
+ goto run_cleanup;
+ }
+ }
+@@ -294,7 +294,7 @@ static const char *xrad_conf_add_server(
+ /* To properly use the Pools, this array is allocated from the here, instead of
+ inside the directory configuration creation function. */
+ if (dc->servers == NULL) {
+- dc->servers = apr_array_make(parms->pool, 4, sizeof(xrad_server_info*));
++ dc->servers = apr_array_make(parms->pool, 4, sizeof(xrad_server_info));
+ }
+
+ sr = apr_array_push(dc->servers);