add a internal socket for chilli, so you can control connection from external script...
[openwrt/svn-archive/archive.git] / net / chillispot / patches / 110-macallowed_fix.patch
1 diff -r -u chillispot-1.1.0/src/chilli.c chillispot-1.1.0-macallowed/src/chilli.c
2 --- chillispot-1.1.0/src/chilli.c 2006-09-24 19:48:25.000000000 +0200
3 +++ chillispot-1.1.0-macallowed/src/chilli.c 2008-07-18 07:58:03.000000000 +0200
4 @@ -534,6 +534,8 @@
5 }
6 }
7 free(p3);
8 +
9 + return 0;
10 }
11
12 int static process_options(int argc, char **argv, int firsttime) {
13 @@ -2991,7 +2993,7 @@
14
15 /* Get Service Type */
16 if (!radius_getattr(pack, &stateattr, RADIUS_ATTR_SERVICE_TYPE, 0, 0, 0)) {
17 - if(ntohl(attr->v.i) == RADIUS_SERVICE_TYPE_CHILLISPOT_AUTHORIZE_ONLY) {
18 + if(ntohl(stateattr->v.i) == RADIUS_SERVICE_TYPE_CHILLISPOT_AUTHORIZE_ONLY) {
19 sys_err(LOG_ERR, __FILE__, __LINE__, 0,
20 "Chillispot-Authorize-Only Service-Type in Access-Accept");
21 return dnprot_reject(appconn);