Changeset 3474


Ignore:
Timestamp:
Mar 23, 2011 3:46:26 AM (9 years ago)
Author:
bennylp
Message:

Bug re #1161: the user header list was not cloned properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r3444 r3474  
    114114        while (hdr != &src->reg_hdr_list) { 
    115115            pj_list_push_back(&dst->reg_hdr_list, pjsip_hdr_clone(pool, hdr)); 
     116            hdr = hdr->next; 
     117        } 
     118    } 
     119 
     120    pj_list_init(&dst->sub_hdr_list); 
     121    if (!pj_list_empty(&src->sub_hdr_list)) { 
     122        const pjsip_hdr *hdr; 
     123 
     124        hdr = src->sub_hdr_list.next; 
     125        while (hdr != &src->sub_hdr_list) { 
     126            pj_list_push_back(&dst->sub_hdr_list, pjsip_hdr_clone(pool, hdr)); 
    116127            hdr = hdr->next; 
    117128        } 
Note: See TracChangeset for help on using the changeset viewer.