Forráskód Böngészése

ndb_redis: add goto error_exec instead of return

Vicente Hernando 13 éve
szülő
commit
57b5efa329
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)
 	{
 		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)