diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-10-13 09:41:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-10-13 09:41:37 +0000 |
commit | c9d40b273390ee46a5c6441fd5fd81c48edce22a (patch) | |
tree | 3225ed48f534c34121d95b2bd3f37edeec4ba147 /pjsip/src/test | |
parent | b3c3836ac9841f7ecfa085b0a8de4f68ffd1b8c6 (diff) |
Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3340 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test')
-rw-r--r-- | pjsip/src/test/multipart_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/test/multipart_test.c b/pjsip/src/test/multipart_test.c index 37c81670..9f059545 100644 --- a/pjsip/src/test/multipart_test.c +++ b/pjsip/src/test/multipart_test.c @@ -116,7 +116,7 @@ static int verify_part(pjsip_multipart_part *part, init_media_type(&mt, h_content_type, h_content_subtype, boundary); - if (pjsip_media_type_cmp(&ctype_hdr->media, &mt) != 0) + if (pjsip_media_type_cmp(&ctype_hdr->media, &mt, 2) != 0) return -20; } else { @@ -153,7 +153,7 @@ static pj_status_t verify1(pj_pool_t *pool, pjsip_msg_body *body) /* Check content-type: "multipart/mixed;boundary=12345" */ init_media_type(&mt, "multipart", "mixed", "12345"); - if (pjsip_media_type_cmp(&body->content_type, &mt) != 0) + if (pjsip_media_type_cmp(&body->content_type, &mt, 2) != 0) return -200; /* First part: |