Ignore:
Timestamp:
Oct 10, 2019 6:54:12 AM (5 years ago)
Author:
nanang
Message:

Fixed #2242: Message buffer not set correctly in pjsip_rx_data_clone().

File:
1 edited

Legend:

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

    r6047 r6089  
    770770 
    771771    /* msg_info needs deep clone */ 
    772     dst->msg_info.msg_buf = dst->pkt_info.packet; 
     772    dst->msg_info.msg_buf = dst->pkt_info.packet + 
     773                            (src->msg_info.msg_buf - src->pkt_info.packet); 
    773774    dst->msg_info.len = src->msg_info.len; 
    774775    dst->msg_info.msg = pjsip_msg_clone(pool, src->msg_info.msg); 
Note: See TracChangeset for help on using the changeset viewer.