diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-03-23 12:01:21 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-03-23 12:01:21 +0000 |
commit | d2ef2df14168ed23946a1dbdd555b8102e2ef14b (patch) | |
tree | 0c81561d2fa9cb009a44c9a063c93562441ce1c8 /pjsip | |
parent | e97f9bc0498fa880c3bb9d14c953d625bd6d2a58 (diff) |
Fix #1223: Bug in initializing message body's media type from incoming message (thanks Gang Liu for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3482 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsip/sip_parser.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pjsip/src/pjsip/sip_parser.c b/pjsip/src/pjsip/sip_parser.c index 61559601..757e644e 100644 --- a/pjsip/src/pjsip/sip_parser.c +++ b/pjsip/src/pjsip/sip_parser.c @@ -1060,9 +1060,8 @@ parse_headers: &ctype_hdr->media, 0); } else { body = PJ_POOL_ALLOC_T(pool, pjsip_msg_body); - body->content_type.type = ctype_hdr->media.type; - body->content_type.subtype = ctype_hdr->media.subtype; - body->content_type.param = ctype_hdr->media.param; + pjsip_media_type_cp(pool, &body->content_type, + &ctype_hdr->media); body->data = scanner->curptr; body->len = scanner->end - scanner->curptr; |