From 2820ed332e4fa09e1e60e9733cdb3aeb3780893c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 22 Nov 2016 18:04:29 +0100 Subject: [PATCH] redis: use 'binary' notation for output --- src/util-logopenfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-logopenfile.c b/src/util-logopenfile.c index f35a7acdbb..8eac7e1ee0 100644 --- a/src/util-logopenfile.c +++ b/src/util-logopenfile.c @@ -592,10 +592,10 @@ static int LogFileWriteRedis(LogFileCtx *file_ctx, const char *string, size_t s file_ctx->redis_setup.batch_count++; } } else { - redisReply *reply = redisCommand(file_ctx->redis, "%s %s %s", + redisReply *reply = redisCommand(file_ctx->redis, "%s %s %b", file_ctx->redis_setup.command, file_ctx->redis_setup.key, - string); + string, string_len); /* We may lose the reply if disconnection happens! */ if (reply) {