Ignore:
Timestamp:
Oct 8, 2013 11:14:42 AM (9 years ago)
Author:
bennylp
Message:

Re #1703 General bug fixes: fixed some wrong null checking order

File:
1 edited

Legend:

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

    r4613 r4615  
    11381138                                              const pj_str_t *value) 
    11391139{ 
    1140     INIT_ATTR(attr, attr_type, value->slen); 
    1141     if (value && value->slen) 
     1140    INIT_ATTR(attr, attr_type, 0); 
     1141    if (value && value->slen) { 
     1142        attr->value.slen = value->slen; 
    11421143        pj_strdup(pool, &attr->value, value); 
    1143     else 
    1144         attr->value.slen = 0; 
     1144    } 
    11451145    return PJ_SUCCESS; 
    11461146} 
Note: See TracChangeset for help on using the changeset viewer.