View | Details | Raw Unified | Return to bug 198498
Collapse All | Expand All

(-)www/mod_auth_xradius/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	mod_auth_xradius
4
PORTNAME=	mod_auth_xradius
5
PORTVERSION=	0.4.6
5
PORTVERSION=	0.4.6
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	www
7
CATEGORIES=	www
8
MASTER_SITES=	http://www.outoforder.cc/downloads/mod_auth_xradius/
8
MASTER_SITES=	http://www.outoforder.cc/downloads/mod_auth_xradius/
9
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
(-)www/mod_auth_xradius/files/patch-src_mod__auth__xradius.c (+30 lines)
Line 0 Link Here
1
--- src/mod_auth_xradius.c.orig	2005-04-28 07:58:25 UTC
2
+++ src/mod_auth_xradius.c
3
@@ -125,15 +125,15 @@ static int xrad_run_auth_check(request_r
4
     rctx = xrad_auth_open();
5
 
6
     /* Loop through the array of RADIUS Servers, adding them to the rctx object */
7
-    sr = (xrad_server_info *) dc->servers->elts;
8
     for (i = 0; i < dc->servers->nelts; ++i) {        
9
-        rc = xrad_add_server(rctx, sr[i].hostname, sr[i].port, sr[i].secret,
10
+        sr = &(((xrad_server_info*)dc->servers->elts)[i]);
11
+        rc = xrad_add_server(rctx, sr->hostname, sr->port, sr->secret,
12
                              dc->timeout, dc->maxtries);
13
         
14
         if (rc != 0) {
15
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
16
                           "xradius: Failed to add server '%s:%d': (%d) %s",
17
-                          sr[i].hostname, sr[i].port, rc, xrad_strerror(rctx));
18
+                          sr->hostname, sr->port, rc, xrad_strerror(rctx));
19
             goto run_cleanup;
20
         }        
21
     }
22
@@ -294,7 +294,7 @@ static const char *xrad_conf_add_server(
23
     /* To properly use the Pools, this array is allocated from the here, instead of
24
         inside the directory configuration creation function. */
25
     if (dc->servers == NULL) {
26
-        dc->servers = apr_array_make(parms->pool, 4, sizeof(xrad_server_info*));
27
+        dc->servers = apr_array_make(parms->pool, 4, sizeof(xrad_server_info));
28
     }
29
     
30
     sr = apr_array_push(dc->servers);

Return to bug 198498