diff options
author | laodc <github@laodc.com> | 2023-08-21 16:29:28 +0700 |
---|---|---|
committer | laodc <github@laodc.com> | 2023-08-21 16:29:28 +0700 |
commit | ee05b36e774253e307b171ffdeb261c1f907ad75 (patch) | |
tree | 92de6ae41fabd49cb1da632f1196d4ba5cce195f /src/libstat/backends | |
parent | 75fdc829bacbdc767b20d3f0e40b91215fce14fe (diff) | |
download | rspamd-ee05b36e774253e307b171ffdeb261c1f907ad75.tar.gz rspamd-ee05b36e774253e307b171ffdeb261c1f907ad75.zip |
changed errors to warnings.
nullptr on contructor was never meant to be there
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 72ffd6c44..8d3f730aa 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -369,9 +369,7 @@ rspamd_redis_maybe_auth(struct redis_stat_ctx *ctx, redisAsyncContext *redis) redisAsyncCommand(redis, NULL, NULL, "AUTH %s %s", ctx->username, ctx->password); } else { - msg_err("Redis requires a password when username is supplied"); - redisAsyncFree(ctx); - return NULL; + msg_warn("Redis requires a password when username is supplied"); } } else if (ctx->password) { |