Mercurial > hg > waaad
changeset 403:bcc13af0825a
Improved initialization message
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 03 Jun 2009 18:14:17 +0900 |
parents | 436958de227e |
children | bad497b30f54 |
files | extensions/radius_gw/sub_acct.c extensions/radius_gw/sub_auth.c |
diffstat | 2 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/radius_gw/sub_acct.c Tue Jun 02 15:11:29 2009 +0900 +++ b/extensions/radius_gw/sub_acct.c Wed Jun 03 18:14:17 2009 +0900 @@ -61,12 +61,13 @@ CHECK_MALLOC_DO( cs = malloc(sizeof(struct rga_conf_state)), return NULL ); memset(cs, 0, sizeof(struct rga_conf_state)); - if (conffile) - cs->conffile = conffile; - else - cs->conffile = "-"; + cs->conffile = conffile; - TRACE_DEBUG(INFO, "Sub extension Accounting (RFC2866) initialized with configuration: '%s'", cs->conffile); + if (conffile) { + TRACE_DEBUG(INFO, "Sub extension Accounting (RFC2866) initialized with configuration: '%s'", cs->conffile); + } else { + TRACE_DEBUG(INFO, "Sub extension Accounting (RFC2866) initialized with default configuration"); + } return cs; }
--- a/extensions/radius_gw/sub_auth.c Tue Jun 02 15:11:29 2009 +0900 +++ b/extensions/radius_gw/sub_auth.c Wed Jun 03 18:14:17 2009 +0900 @@ -66,12 +66,14 @@ CHECK_MALLOC_DO( cs = malloc(sizeof(struct rga_conf_state)), return NULL ); memset(cs, 0, sizeof(struct rga_conf_state)); - if (conffile) - cs->conffile = conffile; - else - cs->conffile = "-"; + cs->conffile = conffile; - TRACE_DEBUG(INFO, "Sub extension Authentication (RFC2865, RFC3579) initialized with configuration: '%s'", cs->conffile); + if (conffile) { + TRACE_DEBUG(INFO, "Sub extension Authentication (RFC2865, RFC3579) initialized with configuration: '%s'", cs->conffile); + } else { + TRACE_DEBUG(INFO, "Sub extension Authentication (RFC2865, RFC3579) initialized with default configuration"); + } + return cs; }