From: KevinWang Date: Fri, 6 Aug 2021 11:39:04 +0000 (+0800) Subject: output/redis: Fix possible segv X-Git-Tag: suricata-7.0.0-beta1~1527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd03c7ea4c5a74d724b10bf65dbbc2082e061d6;p=thirdparty%2Fsuricata.git output/redis: Fix possible segv --- diff --git a/src/util-log-redis.c b/src/util-log-redis.c index 544bef1545..6814b142ab 100644 --- a/src/util-log-redis.c +++ b/src/util-log-redis.c @@ -210,6 +210,7 @@ static int SCConfLogReopenAsyncRedis(LogFileCtx *log_ctx) if (ctx->ev_base != NULL) { event_base_free(ctx->ev_base); + ctx->ev_base = NULL; } if (ctx->async == NULL) {