Closed krhubert closed 6 years ago
diff --git a/src/vmod_redis.c b/src/vmod_redis.c index 97ae0ae..08e1860 100644 --- a/src/vmod_redis.c +++ b/src/vmod_redis.c @@ -126,7 +126,7 @@ static redisReply *redis_common(struct sess *sp, struct vmod_priv *priv, const c redisContext *c = redis_connect(cfg); if (c != NULL) { - redisReply *reply = redisCommand(c, command); + redisReply *reply = redisCommand(c, "%s", command); if (reply == NULL) { LOG_E("redis error (command): err=%d errstr=%s\n", c->err, c->errstr);
It's not as a simple as changing that one line, as they breaks everything (as it string formats commands too). I'll look into other fixes.