aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorlaodc <github@laodc.com>2023-08-21 16:29:28 +0700
committerlaodc <github@laodc.com>2023-08-21 16:29:28 +0700
commitee05b36e774253e307b171ffdeb261c1f907ad75 (patch)
tree92de6ae41fabd49cb1da632f1196d4ba5cce195f /src/libstat
parent75fdc829bacbdc767b20d3f0e40b91215fce14fe (diff)
downloadrspamd-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.c4
-rw-r--r--src/libstat/learn_cache/redis_cache.c4
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) {