Module: kamailio
Branch: master
Commit: c7ceb08b31fdb3f6560d02fff6b6ee71602c19ec
URL:
https://github.com/kamailio/kamailio/commit/c7ceb08b31fdb3f6560d02fff6b6ee7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-08-02T13:43:36+02:00
tm: removed unused error label in prepare_new_uac()
---
Modified: src/modules/tm/t_fwd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c7ceb08b31fdb3f6560d02fff6b6ee7…
Patch:
https://github.com/kamailio/kamailio/commit/c7ceb08b31fdb3f6560d02fff6b6ee7…
---
diff --git a/src/modules/tm/t_fwd.c b/src/modules/tm/t_fwd.c
index ad1ec2dc15..af6a40de1e 100644
--- a/src/modules/tm/t_fwd.c
+++ b/src/modules/tm/t_fwd.c
@@ -199,14 +199,14 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
i_req->add_rm = dup_lump_list(i_req->add_rm);
if (unlikely(i_req->add_rm==0)){
ret=E_OUT_OF_MEM;
- goto error06;
+ goto error05;
}
}
if (unlikely(i_req->body_lumps)){
i_req->body_lumps = dup_lump_list(i_req->body_lumps);
if (unlikely(i_req->body_lumps==0)){
ret=E_OUT_OF_MEM;
- goto error05;
+ goto error04;
}
}
/* backup uri & path: we need to change them so that build_req...()
@@ -595,13 +595,12 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
* routing sections, Via, and Content-Length headers created in
* build_req_buf_from_sip_req().
*/
-error04:
free_duped_lump_list(i_req->body_lumps);
-error05:
+error04:
free_duped_lump_list(i_req->add_rm);
-error06:
+error05:
/* Restore the lists from backups. */
i_req->add_rm = add_rm_backup;
i_req->body_lumps = body_lumps_backup;