FreeBSD Bugzilla – Attachment 154150 Details for
Bug 198498
[PATCH] www/mod_auth_xradius: Add High Availability Patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
xradius high availability patch
xradius_ha.diff (text/plain), 2.55 KB, created by
Mark Felder
on 2015-03-10 16:58:25 UTC
(
hide
)
Description:
xradius high availability patch
Filename:
MIME Type:
Creator:
Mark Felder
Created:
2015-03-10 16:58:25 UTC
Size:
2.55 KB
patch
obsolete
>Index: www/mod_auth_xradius/Makefile >=================================================================== >--- www/mod_auth_xradius/Makefile (revision 380260) >+++ www/mod_auth_xradius/Makefile (working copy) >@@ -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} >Index: www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c >=================================================================== >--- www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c (revision 0) >+++ www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c (working copy) >@@ -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); > >Property changes on: www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198498
: 154150 |
154151
|
154152