Module: kamailio
Branch: master
Commit: 005f4468bc5873ea02b6c0d3d75baa49067e17c9
URL:
https://github.com/kamailio/kamailio/commit/005f4468bc5873ea02b6c0d3d75baa4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-13T09:50:46+02:00
sca: return on rpc fault
---
Modified: src/modules/sca/sca_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/005f4468bc5873ea02b6c0d3d75baa4…
Patch:
https://github.com/kamailio/kamailio/commit/005f4468bc5873ea02b6c0d3d75baa4…
---
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++) {