Changeset 2802 for pjproject


Ignore:
Timestamp:
Jun 25, 2009 11:29:49 AM (15 years ago)
Author:
bennylp
Message:

Ticket #843: Error parsing status line in sipfrag message body in call transfer scenario (thanks Tomáš Valenta for the report!)

  • backported changes from #842
Location:
pjproject/branches/1.0/pjsip/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0/pjsip/src/pjsip/sip_parser.c

    r2538 r2802  
    15891589 
    15901590    pj_bzero(status_line, sizeof(*status_line)); 
    1591     pj_scan_init(&scanner, buf, size, 0, &on_syntax_error); 
     1591    pj_scan_init(&scanner, buf, size, PJ_SCAN_AUTOSKIP_WS_HEADER,  
     1592                 &on_syntax_error); 
    15921593 
    15931594    PJ_TRY { 
  • pjproject/branches/1.0/pjsip/src/pjsua-lib/pjsua_call.c

    r2795 r2802  
    34043404            body = msg->body; 
    34053405            if (!body) { 
    3406                 PJ_LOG(4,(THIS_FILE,  
     3406                PJ_LOG(2,(THIS_FILE,  
    34073407                          "Warning: received NOTIFY without message body")); 
    34083408                return; 
     
    34133413                pj_stricmp2(&body->content_type.subtype, "sipfrag") != 0) 
    34143414            { 
    3415                 PJ_LOG(4,(THIS_FILE,  
     3415                PJ_LOG(2,(THIS_FILE,  
    34163416                          "Warning: received NOTIFY with non message/sipfrag " 
    34173417                          "content")); 
     
    34233423                                             &status_line); 
    34243424            if (status != PJ_SUCCESS) { 
    3425                 PJ_LOG(4,(THIS_FILE,  
     3425                PJ_LOG(2,(THIS_FILE,  
    34263426                          "Warning: received NOTIFY with invalid " 
    34273427                          "message/sipfrag content")); 
Note: See TracChangeset for help on using the changeset viewer.