Ticket #842: Error parsing status line in sipfrag message body in call transfer scenario (thanks Tomáš Valenta for the report!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2695 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/src/test/msg_test.c b/pjsip/src/test/msg_test.c
index 0d922a5..d4a7f14 100644
--- a/pjsip/src/test/msg_test.c
+++ b/pjsip/src/test/msg_test.c
@@ -815,10 +815,17 @@
static pj_status_t simple_test(void)
{
+ char stbuf[] = "SIP/2.0 180 Ringing like it never rings before";
unsigned i;
+ pjsip_status_line st_line;
pj_status_t status;
PJ_LOG(3,(THIS_FILE, " simple test.."));
+
+ status = pjsip_parse_status_line(stbuf, pj_ansi_strlen(stbuf), &st_line);
+ if (status != PJ_SUCCESS)
+ return status;
+
for (i=0; i<PJ_ARRAY_SIZE(test_array); ++i) {
pj_pool_t *pool;
pool = pjsip_endpt_create_pool(endpt, NULL, POOL_SIZE, POOL_SIZE);