Regex operator not working

Stephan Jaeger stephan.jaeger at
Thu Jan 29 16:22:33 CET 2009


in src/lib/valuepair.c there is a

case T_OP_REG_EQ:  /* =~ */
case T_OP_REG_NE:  /* !~ */

return vp;

around line 1540.

But the value is copied into the vp just before the end of the function.
This lets every AVP with a regex op have an empty value which makes the
regex always match.


Stephan Jaeger

Stephan Jaeger <stephan.jaeger at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <>

More information about the Freeradius-Devel mailing list