[Patch] Pre-Acct-Type dict value registration

Lv Zheng lv.zheng at soliton.com.cn
Fri Jun 8 04:57:14 CEST 2007


Hi, all

I noticed that there might be codes missing in modules.c for Pre-Acct-Type.
This will crash the radiusd server if thre is pre-acct sub-list in radiusd.conf.

The patch is created for FreeRADIUS-1.1.2, I've tested it against
FreeRADIUS-1.1.6.

Best regards,
Lv Zheng

Index: freeradius-1.1.2/src/main/modules.c
===================================================================
--- freeradius-1.1.2.orig/src/main/modules.c 2007-04-26 06:02:03.000000000 +0800
+++ freeradius-1.1.2/src/main/modules.c 2007-04-26 06:02:32.000000000 +0800
@@ -497,6 +497,8 @@
   dval = dict_valbyname(PW_AUTH_TYPE, cf_section_name2(cs));
  } else if (comp == RLM_COMPONENT_AUTZ) {
   dval = dict_valbyname(PW_AUTZ_TYPE, cf_section_name2(cs));
+ } else if (comp == RLM_COMPONENT_PREACCT) {
+  dval = dict_valbyname(PW_PRE_ACCT_TYPE, cf_section_name2(cs));
  } else if (comp == RLM_COMPONENT_ACCT) {
   dval = dict_valbyname(PW_ACCT_TYPE, cf_section_name2(cs));
  } else if (comp == RLM_COMPONENT_SESS) {

=============================================
Soliton Network Systems (Shanghai) Co., Ltd.
EMAIL: lv.zheng at soliton.com.cn
=============================================



More information about the Freeradius-Devel mailing list