Changeset 2076 for pjproject/trunk


Ignore:
Timestamp:
Jun 27, 2008 6:47:05 PM (16 years ago)
Author:
bennylp
Message:

Fixed assertion when parsing incoming SDP which is not properly terminated with CRLF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp.c

    r2039 r2076  
    258258     */ 
    259259    if (attr->value.ptr[attr->value.slen] != 0 && 
    260         attr->value.ptr[attr->value.slen] != '\r') 
     260        attr->value.ptr[attr->value.slen] != '\r' && 
     261        attr->value.ptr[attr->value.slen] != '\n') 
    261262    { 
    262263        pj_assert(!"Shouldn't happen"); 
Note: See TracChangeset for help on using the changeset viewer.