瀏覽代碼

ndb_redis: add goto error_exec instead of return

Vicente Hernando 13 年之前
父節點
當前提交
57b5efa329
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/ndb_redis/redis_client.c

+ 1 - 1
modules/ndb_redis/redis_client.c

@@ -334,7 +334,7 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
 	if(rsrv->ctxRedis==NULL)
 	if(rsrv->ctxRedis==NULL)
 	{
 	{
 		LM_ERR("no redis context for server: %.*s\n", srv->len, srv->s);
 		LM_ERR("no redis context for server: %.*s\n", srv->len, srv->s);
-		return -1;
+		goto error_exec;
 	}
 	}
 	rpl = redisc_get_reply(res);
 	rpl = redisc_get_reply(res);
 	if(rpl==NULL)
 	if(rpl==NULL)