From d466e5c326d55bb1d2b6509266a59bcce8a73444 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 20 Jan 2021 11:22:28 -0500 Subject: [PATCH] TT#97301 fix bit-setting of negative log levels Change-Id: I383645d874f17a128385aae8a0f1e3f7f9b99ff3 --- daemon/redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/redis.c b/daemon/redis.c index 6c3461e03..af88714a5 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -1956,7 +1956,8 @@ int redis_restore(struct redis *r) { err: for (unsigned int i = 0; i < num_log_levels; i++) - rtpe_config.common.log_levels[i] &= ~LOG_FLAG_RESTORE; + if (rtpe_config.common.log_levels[i] > 0) + rtpe_config.common.log_levels[i] &= ~LOG_FLAG_RESTORE; return ret; }