Changeset 5742


Ignore:
Timestamp:
Feb 21, 2018 2:48:05 AM (7 years ago)
Author:
ming
Message:

Fixed #2094: backported r5740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/adhocs/2.7.x/pjmedia/src/pjmedia/sdp.c

    r5335 r5742  
    257257    PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtpmap")==0, PJ_EINVALIDOP); 
    258258 
    259     PJ_ASSERT_RETURN(attr->value.slen != 0, PJMEDIA_SDP_EINATTR); 
     259    if (attr->value.slen == 0) 
     260        return PJMEDIA_SDP_EINATTR; 
    260261 
    261262    init_sdp_parser(); 
     
    342343    PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "fmtp")==0, PJ_EINVALIDOP); 
    343344 
     345    if (attr->value.slen == 0) 
     346        return PJMEDIA_SDP_EINATTR; 
     347 
    344348    /* fmtp BNF: 
    345349     *  a=fmtp:<format> <format specific parameter> 
     
    379383 
    380384    PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtcp")==0, PJ_EINVALIDOP); 
     385 
     386    if (attr->value.slen == 0) 
     387        return PJMEDIA_SDP_EINATTR; 
    381388 
    382389    init_sdp_parser(); 
Note: See TracChangeset for help on using the changeset viewer.