[sr-dev] git:master: ndb_redis: add goto error_exec instead of return

Vicente Hernando vhernando at systemonenoc.com
Mon Aug 27 13:11:44 CEST 2012


Module: sip-router
Branch: master
Commit: 57b5efa329ee50cfee361fe10204b37ca8a8e039
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=57b5efa329ee50cfee361fe10204b37ca8a8e039

Author: Vicente Hernando <vhernando at systemonenoc.com>
Committer: Vicente Hernando <vhernando at systemonenoc.com>
Date:   Mon Aug 27 07:01:18 2012 -0400

ndb_redis: add goto error_exec instead of return

---

 modules/ndb_redis/redis_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/ndb_redis/redis_client.c b/modules/ndb_redis/redis_client.c
index 84e9e9e..72354a6 100644
--- a/modules/ndb_redis/redis_client.c
+++ b/modules/ndb_redis/redis_client.c
@@ -334,7 +334,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
 	if(rsrv->ctxRedis==NULL)
 	{
 		LM_ERR("no redis context for server: %.*s\n", srv->len, srv->s);
-		return -1;
+		goto error_exec;
 	}
 	rpl = redisc_get_reply(res);
 	if(rpl==NULL)




More information about the sr-dev mailing list