Ignore:
Timestamp:
Oct 1, 2009 12:07:04 PM (13 years ago)
Author:
bennylp
Message:

Ticket #961 (1.4.5 branch): Assertion upon receiving malformed SIP messages (thanks Andrey Kovalenko for the report)

Location:
pjproject/branches/adhocs/1.4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/adhocs/1.4.5

  • pjproject/branches/adhocs/1.4.5/pjsip/src/pjsip/sip_transport.c

    r2724 r2921  
    14401440                rdata->msg_info.via->rport_param = rdata->pkt_info.src_port; 
    14411441            } 
     1442        } else { 
     1443            /* Drop malformed responses */ 
     1444            if (rdata->msg_info.msg->line.status.code < 100 || 
     1445                rdata->msg_info.msg->line.status.code >= 700) 
     1446            { 
     1447                mgr->on_rx_msg(mgr->endpt, PJSIP_EINVALIDSTATUS, rdata); 
     1448                goto finish_process_fragment; 
     1449            } 
    14421450        } 
    14431451 
Note: See TracChangeset for help on using the changeset viewer.