Module: kamailio
Branch: master
Commit: be59c13f0d710df1be9c68af53f4167f575d5ae5
URL:
https://github.com/kamailio/kamailio/commit/be59c13f0d710df1be9c68af53f4167…
Author: Claudiu Boriga <paul.boriga(a)1and1.ro>
Committer: Claudiu Boriga <paul.boriga(a)1and1.ro>
Date: 2017-05-02T15:13:55+03:00
ndb_redis: make redis_execute() return negative value on error
---
Modified: src/modules/ndb_redis/ndb_redis_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/be59c13f0d710df1be9c68af53f4167…
Patch:
https://github.com/kamailio/kamailio/commit/be59c13f0d710df1be9c68af53f4167…
---
diff --git a/src/modules/ndb_redis/ndb_redis_mod.c
b/src/modules/ndb_redis/ndb_redis_mod.c
index 4d655ad..36b4efd 100644
--- a/src/modules/ndb_redis/ndb_redis_mod.c
+++ b/src/modules/ndb_redis/ndb_redis_mod.c
@@ -546,6 +546,7 @@ static int w_redis_pipe_cmd6(struct sip_msg* msg, char* ssrv, char*
scmd,
static int w_redis_execute(struct sip_msg* msg, char* ssrv)
{
str s;
+ int rv;
if (redis_cluster_param)
{
@@ -557,7 +558,9 @@ static int w_redis_execute(struct sip_msg* msg, char* ssrv)
LM_ERR("no redis server name\n");
return -1;
}
- redisc_exec_pipelined_cmd(&s);
+ rv=redisc_exec_pipelined_cmd(&s);
+ if (rv)
+ return rv;
return 1;
}