Module: kamailio
Branch: master
Commit: aa081dbd1ee1901c6174ffddd556bda47b6ef732
URL: 
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda47b6ef732

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-13T10:50:32+01:00

tm: rpc uac - jump to error when failing to create delayed context

---

Modified: src/modules/tm/rpc_uac.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda47b6ef732.diff
Patch: 
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda47b6ef732.patch

---

diff --git a/src/modules/tm/rpc_uac.c b/src/modules/tm/rpc_uac.c
index e63da4fb835..2d7bd6113d4 100644
--- a/src/modules/tm/rpc_uac.c
+++ b/src/modules/tm/rpc_uac.c
@@ -778,7 +778,7 @@ static void rpc_t_uac(rpc_t *rpc, void *c, int reply_wait)
                dctx = rpc->delayed_ctx_new(c);
                if(dctx == 0) {
                        rpc->fault(c, 500, "internal error: failed to create 
context");
-                       return;
+                       goto error01;
                }
                uac_req.cb = rpc_uac_callback;
                uac_req.cbp = dctx;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to