| 620 | |
| 621 | |
| 622 | struct usr_avp *clone_avp_list(struct usr_avp *old) |
| 623 | { |
| 624 | struct usr_avp *a; |
| 625 | int_str val; |
| 626 | |
| 627 | if (!old) return NULL; |
| 628 | |
| 629 | /* create a copy of the old AVP */ |
| 630 | get_avp_val( old, &val ); |
| 631 | a = new_avp( old->flags, old->id, val); |
| 632 | if (a==NULL) { |
| 633 | LM_ERR("cloning failed, trunking the list\n"); |
| 634 | return NULL; |
| 635 | } |
| 636 | |
| 637 | a->next = clone_avp_list(old->next); |
| 638 | return a; |
| 639 | } |
| 640 | |
| 641 | |
| 642 | struct usr_avp** set_bavp_list(struct usr_avp **list) |
no test coverage detected