Mercurial > hg > waaad
diff extensions/radius_gw/sub_auth.c @ 403:bcc13af0825a
Improved initialization message
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 03 Jun 2009 18:14:17 +0900 |
parents | 9d3dc44c9c22 |
children | 9cb1799c40d1 |
line wrap: on
line diff
--- 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; }