Module: kamailio
Branch: master
Commit: 37355281dffccc42b1d83f413e3d528bdcf6cdd0
URL:
https://github.com/kamailio/kamailio/commit/37355281dffccc42b1d83f413e3d528…
Author: Spencer Thomason <spencer(a)whiteskycommunications.com>
Committer: Spencer Thomason <spencer(a)whiteskycommunications.com>
Date: 2016-07-01T07:33:42-07:00
counters: fix return statement in void function
---
Modified: modules/counters/counters.c
---
Diff:
https://github.com/kamailio/kamailio/commit/37355281dffccc42b1d83f413e3d528…
Patch:
https://github.com/kamailio/kamailio/commit/37355281dffccc42b1d83f413e3d528…
---
diff --git a/modules/counters/counters.c b/modules/counters/counters.c
index 7d7f85e..d90ead1 100644
--- a/modules/counters/counters.c
+++ b/modules/counters/counters.c
@@ -288,7 +288,8 @@ static void cnt_get_rpc(rpc_t* rpc, void* c)
if (rpc->scan(c, "s", &group) < 1)
return;
if (rpc->scan(c, "*s", &name) < 1)
- return cnt_grp_get_all(rpc, c, group);
+ cnt_grp_get_all(rpc, c, group);
+ return;
/* group & name read */
if (counter_lookup(&h, group, name) < 0) {
rpc->fault(c, 400, "non-existent counter %s.%s\n", group, name);
@@ -427,7 +428,7 @@ static void cnt_grp_get_all_rpc(rpc_t* rpc, void* c)
/* rpc->fault(c, 400, "group name required"); */
return;
}
- return cnt_grp_get_all(rpc, c, group);
+ cnt_grp_get_all(rpc, c, group);
}