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 | |
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')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 4 | ||||
-rw-r--r-- | src/libstat/learn_cache/redis_cache.c | 4 |
2 files changed, 2 insertions, 6 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) { diff --git a/src/libstat/learn_cache/redis_cache.c b/src/libstat/learn_cache/redis_cache.c index 0bbae8560..0a378c8a3 100644 --- a/src/libstat/learn_cache/redis_cache.c +++ b/src/libstat/learn_cache/redis_cache.c @@ -83,9 +83,7 @@ rspamd_redis_cache_maybe_auth(struct rspamd_redis_cache_ctx *ctx, 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) { |