Changeset 596


Ignore:
Timestamp:
Jul 9, 2006 10:11:43 AM (18 years ago)
Author:
bennylp
Message:

Fix minor bug in displaying invalid message (previously the whole TCP packet was printed while it should only print the message chunk)

Location:
pjproject/trunk/pjsip/src/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c

    r582 r596  
    718718        PJ_LOG(1, (THIS_FILE,  
    719719                  "Error processing packet from %s:%d: %s %s [code %d]:\n" 
    720                   "%s\n" 
     720                  "%.*s\n" 
    721721                  "-- end of packet.", 
    722722                  rdata->pkt_info.src_name,  
     
    725725                  info, 
    726726                  status, 
     727                  (int)rdata->msg_info.len,      
    727728                  rdata->msg_info.msg_buf)); 
    728729        return; 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r582 r596  
    955955        rdata->msg_info.msg = msg =  
    956956            pjsip_parse_rdata( current_pkt, msg_fragment_size, rdata); 
    957         if (msg == NULL) { 
    958             mgr->on_rx_msg(mgr->endpt, PJSIP_EINVALIDMSG, rdata); 
    959             goto finish_process_fragment; 
    960         } 
    961957 
    962958        /* Check for parsing syntax error */ 
    963         if (!pj_list_empty(&rdata->msg_info.parse_err)) { 
     959        if (msg==NULL || !pj_list_empty(&rdata->msg_info.parse_err)) { 
    964960            pjsip_parser_err_report *err; 
    965961            char buf[128]; 
Note: See TracChangeset for help on using the changeset viewer.