Changeset 4895 for pjproject


Ignore:
Timestamp:
Aug 20, 2014 10:35:29 AM (10 years ago)
Author:
bennylp
Message:

Fixed #1780: Bug: STUN string attribute has zero length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_msg.c

    r4890 r4895  
    11381138                                              const pj_str_t *value) 
    11391139{ 
    1140     INIT_ATTR(attr, attr_type, 0); 
    11411140    if (value && value->slen) { 
     1141        INIT_ATTR(attr, attr_type, value->slen); 
    11421142        attr->value.slen = value->slen; 
    11431143        pj_strdup(pool, &attr->value, value); 
     1144    } else { 
     1145        INIT_ATTR(attr, attr_type, 0); 
    11441146    } 
    11451147    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.