Dear Alan,<br><br>I added the following code in modcall.c under the function modcall_recurse():<br><br>rlm_rcode_t result;<br>module_t module;<br>int i;<br>result = call_modsingle(c->method, sp, request);<br> module.rtcode[result] = module.rtcode[result] + 1;<br><span> </span>/*Used printf to view the array elements*/<br> for (i = 0; i < RLM_MODULE_NUMCODES; i++) { <br> printf("\nRTCODE[%d]=%ld\n",i,module.rtcode[i]); <br> }<br><br>In module_t structure I added my unsigned long array:<br>uint64_t rtcode[RLM_MODULE_NUMCODES]; //Used for module return codes <br><br>But I am getting junk values in array at times and I don't know where exactly shall I do memset(module.rtcode,0,sizeof(module.rtcode));<br><br>Please help to resolve this.<br><br>Following debug log is generated when I run radiusd -X. <br><br>Starting - reading configuration files ...<br>including dictionary file /opt/freeradius/share/freeradius/dictionary<br>including dictionary file /opt/freeradius/share/freeradius/dictionary.dhcp<br>including dictionary file /opt/freeradius/share/freeradius/dictionary.vqp<br>including dictionary file /opt/freeradius/etc/raddb/dictionary<br>including configuration file /opt/freeradius/etc/raddb/radiusd.conf<br>including configuration file /opt/freeradius/etc/raddb/proxy.conf<br>including configuration file /opt/freeradius/etc/raddb/clients.conf<br>including files in directory /opt/freeradius/etc/raddb/mods-enabled/<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/always<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/logintime<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/digest<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/cache_eap<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/exec<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/dynamic_clients<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/files<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/passwd<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/replicate<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/pap<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/realm<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/attr_filter<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/ntlm_auth<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/detail<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/dhcp<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/utf8<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/chap<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/unpack<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/sradutmp<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/mschap<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/expiration<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/eap<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/unix<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/expr<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/radutmp<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/soh<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/linelog<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/detail.log<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/preprocess<br>including configuration file /opt/freeradius/etc/raddb/mods-enabled/echo<br>including files in directory /opt/freeradius/etc/raddb/policy.d/<br>including configuration file /opt/freeradius/etc/raddb/policy.d/operator-name<br>including configuration file /opt/freeradius/etc/raddb/policy.d/canonicalization<br>including configuration file /opt/freeradius/etc/raddb/policy.d/dhcp<br>including configuration file /opt/freeradius/etc/raddb/policy.d/debug<br>including configuration file /opt/freeradius/etc/raddb/policy.d/eap<br>including configuration file /opt/freeradius/etc/raddb/policy.d/cui<br>including configuration file 
<br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A><table cellpadding="0" cellspacing="0"><tbody><tr><td><div style="font-family: Arial, Helvetica, sans-serif; font-size:14px">Get your own <span style="padding-bottom: 0px; background-color: #cc0000; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> website,  <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> domain & <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> mobile app with Company email.  </div></td><td><a href="http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host" style="font-family: Arial, Helvetica, sans-serif; color: #fff; font-size: 14px; color:#0000cc" target="_blank"><b>Know More ></b></a><!-- <in-put type="button" cl-ass="button" on-click="parent.location='http://track.rediff.com/click?url=___http://businessemail.rediff.com/company-email-hosting-services?sc_cid=signature-23-9-13___&cmp=signature-23-9-13&lnk=mypagelogout&nsrv1=host'" value="Know more >"> </input> --></td></tr></tbody></table>