Date: Tue, 28 Apr 2015 13:36:56 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384899 - in head/www/mod_auth_xradius: . files Message-ID: <201504281336.t3SDaufw085190@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Tue Apr 28 13:36:55 2015 New Revision: 384899 URL: https://svnweb.freebsd.org/changeset/ports/384899 Log: 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 Added: head/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c (contents, props changed) Modified: head/www/mod_auth_xradius/Makefile Modified: head/www/mod_auth_xradius/Makefile ============================================================================== --- head/www/mod_auth_xradius/Makefile Tue Apr 28 13:26:43 2015 (r384898) +++ head/www/mod_auth_xradius/Makefile Tue Apr 28 13:36:55 2015 (r384899) @@ -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} Added: head/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c Tue Apr 28 13:36:55 2015 (r384899) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504281336.t3SDaufw085190>