fixing regex for PW_TYPE_IPADDR
Joe Maimon
jmaimon at ttec.com
Mon Oct 3 13:49:22 CEST 2005
Apparently without this pairmake() in src/lib/valuepair.c will cause to
be ignored a/v with regex ops that look like incomplete ip addresses.
diff -u ../../../../cvs/cvs-20050929/radiusd/src/lib/valuepair.c
valuepair.c
--- ../../../../cvs/cvs-20050929/radiusd/src/lib/valuepair.c
2005-09-13 21:03:06.000000000 -0400
+++ valuepair.c 2005-10-03 07:44:05.000000000 -0400
@@ -723,6 +723,11 @@
break;
case PW_TYPE_IPADDR:
+ /* jm hack*/
+ if (vp->operator == T_OP_REG_EQ ||
+ vp->operator == T_OP_REG_NE)
+ break;
+
/*
* FIXME: complain if hostname
* cannot be resolved, or resolve later!
More information about the Freeradius-Devel
mailing list