Ignore:
Timestamp:
Oct 13, 2010 9:41:37 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r3301 r3340  
    646646 */ 
    647647PJ_DEF(int) pjsip_media_type_cmp( const pjsip_media_type *mt1, 
    648                                   const pjsip_media_type *mt2) 
     648                                  const pjsip_media_type *mt2, 
     649                                  pj_bool_t cmp_param) 
    649650{ 
    650651    int rc; 
     
    658659    if (rc) return rc; 
    659660 
    660     rc = pjsip_param_cmp(&mt1->param, &mt2->param, 0); 
     661    if (cmp_param) { 
     662        rc = pjsip_param_cmp(&mt1->param, &mt2->param, (cmp_param==1)); 
     663    } 
    661664 
    662665    return rc; 
Note: See TracChangeset for help on using the changeset viewer.