Module: kamailio
Branch: 5.4
Commit: 681952d1f1fc5d0226f4a7adb99e7cfefef8727b
URL:
https://github.com/kamailio/kamailio/commit/681952d1f1fc5d0226f4a7adb99e7cf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/681952d1f1fc5d0226f4a7adb99e7cf…
Patch:
https://github.com/kamailio/kamailio/commit/681952d1f1fc5d0226f4a7adb99e7cf…
---
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++) {