Problem with setting substring match variables (%{1} etc.)
Enrik Berkhan
enrik#freeradius at planb.de
Thu Aug 9 10:27:55 CEST 2007
Enrik Berkhan wrote:
> Now I'm gonna try to find out why the += segfaults in the above unlang
> example ...
I think it's a simple typo:
Index: src/main/evaluate.c
===================================================================
RCS file: /source/radiusd/src/main/evaluate.c,v
retrieving revision 1.24
diff -u -r1.24 evaluate.c
--- src/main/evaluate.c 1 Aug 2007 15:45:34 -0000 1.24
+++ src/main/evaluate.c 9 Aug 2007 08:25:36 -0000
@@ -912,7 +907,7 @@
* file and debug output, where we don't want to
* see the operators.
*/
- to_list[j]->operator = T_OP_EQ;
+ to_list[i]->operator = T_OP_EQ;
*last = to_list[i];
last = &(*last)->next;
Enrik
More information about the Freeradius-Devel
mailing list