Navigation


Changeset 386:ce8d20725308 in freeDiameter


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

Allow empty User-Name RADIUS attributes

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgwx_auth.c

    r385 r386  
    376376               
    377377                        case RADIUS_ATTR_USER_NAME:
    378                                 if (attr_len) {
    379                                         TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_val);
    380                                         un = attr_val;
    381                                         un_len = attr_len;
    382                                 }
     378                                TRACE_DEBUG(ANNOYING, "Found a User-Name attribute: '%.*s'", attr_len, attr_val);
     379                                un = attr_val;
     380                                un_len = attr_len;
    383381                                break;
    384382                       
  • libfreeDiameter/messages.c

    r330 r386  
    11391139       
    11401140        /* Copy an octetstring if needed. */
    1141         if (type == AVP_TYPE_OCTETSTRING) {
     1141        if ((type == AVP_TYPE_OCTETSTRING) && (value->os.len)) {
    11421142                CHECK_MALLOC(  avp->avp_storage.os.data = malloc(value->os.len)  );
    11431143                avp->avp_mustfreeos = 1;
Note: See TracChangeset for help on using the changeset viewer.