- Timestamp:
- Jun 12, 2015 3:03:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r4613 r5106 145 145 unsigned c_pt = 0xFFFF; 146 146 147 PJ_ASSERT_RETURN(count < PJMEDIA_MAX_SDP_ATTR, NULL); 148 147 149 if (c_fmt) 148 150 c_pt = pj_strtoul(c_fmt); … … 200 202 201 203 PJ_ASSERT_RETURN(count && attr_array && name, PJ_EINVAL); 204 PJ_ASSERT_RETURN(*count < PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY); 202 205 203 206 attr_name.ptr = (char*)name; … … 226 229 227 230 PJ_ASSERT_RETURN(count && attr_array && attr, PJ_EINVAL); 231 PJ_ASSERT_RETURN(*count < PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY); 228 232 229 233 for (i=0; i<*count; ) {
Note: See TracChangeset
for help on using the changeset viewer.