Changeset 4295


Ignore:
Timestamp:
Nov 6, 2012 5:22:11 AM (12 years ago)
Author:
nanang
Message:

Re #1590: Fixed pjsip_rx_data_clone() when there are multiple instances of a single header type (thanks Mike Evans for the report and the fix).

File:
1 edited

Legend:

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

    r4275 r4295  
    639639#define GET_MSG_HDR2(TYPE, type, var)   \ 
    640640                        case PJSIP_H_##TYPE: \ 
    641                             dst->msg_info.var = (pjsip_##type##_hdr*)hdr; \ 
     641                            if (!dst->msg_info.var) { \ 
     642                                dst->msg_info.var = (pjsip_##type##_hdr*)hdr; \ 
     643                            } \ 
    642644                            break 
    643645#define GET_MSG_HDR(TYPE, var_type)     GET_MSG_HDR2(TYPE, var_type, var_type) 
Note: See TracChangeset for help on using the changeset viewer.