1 --- globals.h.orig 2009-01-23 12:31:12.000000000 +0200
2 +++ globals.h 2009-02-05 17:02:36.000000000 +0200
38 ulong sidtabok; // positiv services
39 --- mpcs-config.c.orig 2008-12-04 18:31:34.000000000 +0200
40 +++ mpcs-config.c 2009-02-05 17:09:16.000000000 +0200
42 if (!strcmp(token, "group"))
43 for (ptr1=strtok(value, ","); ptr1; ptr1=strtok(NULL, ","))
47 - if ((g>0) && (g<33)) account->grp|=(1<<(g-1));
50 + if ((g>0) && (g<=(sizeof(account->grp)*8))/*33*/) account->grp|=(1<<(g-1));
52 if(!strcmp(token, "services")) chk_services(value, &account->sidtabok, &account->sidtabno);
53 if(!strcmp(token, "ident")) chk_ftab(value, &account->ftab, "user", account->usr, "provid");
55 if (!strcmp(token, "group"))
56 for (ptr=strtok(value, ","); ptr; ptr=strtok(NULL, ","))
60 - if ((g>0) && (g<33)) rdr->grp|=(1<<(g-1));
63 + if ((g>0) && (g<=(sizeof(rdr->grp)*8)/*33*/)) rdr->grp|=(1<<(g-1));
65 if (!strcmp(token, "emmcache"))
66 for (i=0, ptr=strtok(value, ","); (i<3)&&(ptr); ptr=strtok(NULL, ","), i++)
67 --- mpcs.c.orig 2009-01-22 00:06:20.000000000 +0200
68 +++ mpcs.c 2009-02-05 17:03:38.000000000 +0200
70 char *t_grant=" granted";
71 char *t_reject=" rejected";
72 char *t_msg[]= { buf, "invalid access", "invalid ip", "unknown reason" };
73 - client[cs_idx].grp=0xffffffff;
74 + client[cs_idx].grp=-1;//0xffffffff;
75 client[cs_idx].au=(-1);