Navigation


Changeset 388:554fe1d67acc in freeDiameter


Ignore:
Timestamp:
Jul 6, 2010, 2:54:06 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix small issue in the gateway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgwx_auth.c

    r386 r388  
    376376               
    377377                        case RADIUS_ATTR_USER_NAME:
    378                                 TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_val);
     378                                TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_len ? attr_val : "");
    379379                                un = attr_val;
    380380                                un_len = attr_len;
     
    428428                        }
    429429                }
    430                 if (i == 0) {
     430                if (i <= 0) {
    431431                        /* Not found in the User-Name => we use the local domain of this gateway */
    432432                        value.os.data = fd_g_config->cnf_diamrlm;
Note: See TracChangeset for help on using the changeset viewer.