Changeset 3482


Ignore:
Timestamp:
Mar 23, 2011 12:01:21 PM (9 years ago)
Author:
bennylp
Message:

Fix #1223: Bug in initializing message body's media type from incoming message (thanks Gang Liu for the report)

File:
1 edited

Legend:

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

    r3342 r3482  
    10611061            } else { 
    10621062                body = PJ_POOL_ALLOC_T(pool, pjsip_msg_body); 
    1063                 body->content_type.type = ctype_hdr->media.type; 
    1064                 body->content_type.subtype = ctype_hdr->media.subtype; 
    1065                 body->content_type.param = ctype_hdr->media.param; 
     1063                pjsip_media_type_cp(pool, &body->content_type, 
     1064                                    &ctype_hdr->media); 
    10661065 
    10671066                body->data = scanner->curptr; 
Note: See TracChangeset for help on using the changeset viewer.