changeset 522:0a51aa1a2842

Fix parameter parsing, thanks to Souheil for the bug report
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 01 Sep 2010 11:48:39 +0900
parents b793d43e4686
children 4b1b22e3b4f3
files extensions/app_radgw/rgw_conf.l
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/app_radgw/rgw_conf.l	Fri Aug 27 16:26:11 2010 +0900
+++ b/extensions/app_radgw/rgw_conf.l	Wed Sep 01 11:48:39 2010 +0900
@@ -198,11 +198,11 @@
 
 
 	/* Servers section */
-(?i:"auth_server_enable")	{ return AUTH_ENABLE; 				}
+(?i:"auth_server_enable")	{ BEGIN(EXPECT_DECINT); return AUTH_ENABLE; 	}
 (?i:"auth_server_port")		{ BEGIN(EXPECT_DECINT); return AUTH_PORT; 	}
 (?i:"auth_server_ip4")		{ BEGIN(EXPECT_IP4); return AUTH_IP4; 		}
 (?i:"auth_server_ip6")		{ BEGIN(EXPECT_IP6); return AUTH_IP6; 		}
-(?i:"acct_server_enable")	{ return ACCT_ENABLE; 				}
+(?i:"acct_server_enable")	{ BEGIN(EXPECT_DECINT); return ACCT_ENABLE; 	}
 (?i:"acct_server_port")		{ BEGIN(EXPECT_DECINT); return ACCT_PORT; 	}
 (?i:"acct_server_ip4")		{ BEGIN(EXPECT_IP4); return ACCT_IP4; 		}
 (?i:"acct_server_ip6")		{ BEGIN(EXPECT_IP6); return ACCT_IP6; 		}
"Welcome to our mercurial repository"