Changeset 5352
- Timestamp:
- Jun 21, 2016 10:19:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r5336 r5352 522 522 while (route != ®c->route_set) { 523 523 pjsip_hdr *new_hdr = (pjsip_hdr*) 524 pjsip_hdr_ shallow_clone(tdata->pool, route);524 pjsip_hdr_clone(tdata->pool, route); 525 525 pj_list_insert_after(route_pos, new_hdr); 526 526 route_pos = new_hdr; … … 536 536 while (hdr != ®c->hdr_list) { 537 537 pjsip_hdr *new_hdr = (pjsip_hdr*) 538 pjsip_hdr_ shallow_clone(tdata->pool, hdr);538 pjsip_hdr_clone(tdata->pool, hdr); 539 539 pjsip_msg_add_hdr(tdata->msg, new_hdr); 540 540 hdr = hdr->next; … … 575 575 while (hdr != ®c->contact_hdr_list) { 576 576 pjsip_msg_add_hdr(msg, (pjsip_hdr*) 577 pjsip_hdr_ shallow_clone(tdata->pool, hdr));577 pjsip_hdr_clone(tdata->pool, hdr)); 578 578 hdr = hdr->next; 579 579 } … … 590 590 if (regc->expires_hdr) 591 591 pjsip_msg_add_hdr(msg, (pjsip_hdr*) 592 pjsip_hdr_ shallow_clone(tdata->pool,593 592 pjsip_hdr_clone(tdata->pool, 593 regc->expires_hdr)); 594 594 595 595 if (regc->timer.id != 0) { … … 602 602 if (h_allow) { 603 603 pjsip_msg_add_hdr(msg, (pjsip_hdr*) 604 pjsip_hdr_ shallow_clone(tdata->pool, h_allow));604 pjsip_hdr_clone(tdata->pool, h_allow)); 605 605 606 606 } … … 647 647 while ((void*)hdr != (void*)®c->contact_hdr_list) { 648 648 pjsip_msg_add_hdr(msg, (pjsip_hdr*) 649 pjsip_hdr_ shallow_clone(tdata->pool, hdr));649 pjsip_hdr_clone(tdata->pool, hdr)); 650 650 hdr = hdr->next; 651 651 } … … 1172 1172 while (chdr != ®c->contact_hdr_list) { 1173 1173 pj_list_insert_before(ins_hdr, (pjsip_hdr*) 1174 pjsip_hdr_ shallow_clone(tsx->last_tx->pool, chdr));1174 pjsip_hdr_clone(tsx->last_tx->pool, chdr)); 1175 1175 chdr = chdr->next; 1176 1176 }
Note: See TracChangeset
for help on using the changeset viewer.