Mercurial > hg > freeDiameter
changeset 388:554fe1d67acc
Fix small issue in the gateway
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 06 Jul 2010 14:54:06 +0900 |
parents | 743195485eec |
children | 0edc39d1dd0e |
files | extensions/app_radgw/rgwx_auth.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_auth.c Tue Jul 06 14:49:33 2010 +0900 +++ b/extensions/app_radgw/rgwx_auth.c Tue Jul 06 14:54:06 2010 +0900 @@ -375,7 +375,7 @@ break; case RADIUS_ATTR_USER_NAME: - TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_val); + TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_len ? attr_val : ""); un = attr_val; un_len = attr_len; break; @@ -427,7 +427,7 @@ } } } - if (i == 0) { + if (i <= 0) { /* Not found in the User-Name => we use the local domain of this gateway */ value.os.data = fd_g_config->cnf_diamrlm; value.os.len = fd_g_config->cnf_diamrlm_len;