[sr-dev] git:5.4:681952d1: sca: return on rpc fault

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 15 08:38:23 CEST 2021


Module: kamailio
Branch: 5.4
Commit: 681952d1f1fc5d0226f4a7adb99e7cfefef8727b
URL: https://github.com/kamailio/kamailio/commit/681952d1f1fc5d0226f4a7adb99e7cfefef8727b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-04-15T08:34:47+02:00

sca: return on rpc fault

(cherry picked from commit 005f4468bc5873ea02b6c0d3d75baa49067e17c9)

---

Modified: src/modules/sca/sca_rpc.c

---

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

---

diff --git a/src/modules/sca/sca_rpc.c b/src/modules/sca/sca_rpc.c
index f1882fa879..c3b9b0f2ba 100644
--- a/src/modules/sca/sca_rpc.c
+++ b/src/modules/sca/sca_rpc.c
@@ -184,6 +184,7 @@ void sca_rpc_deactivate_all_subscriptions(rpc_t *rpc, void *ctx)
 
 	if((ht = sca->subscriptions) == NULL) {
 		rpc->fault(ctx, 500, "Empty subscription table!");
+		return;
 	}
 
 	for(i = 0; i < ht->size; i++) {




More information about the sr-dev mailing list