TT#97301 fix bit-setting of negative log levels

Change-Id: I383645d874f17a128385aae8a0f1e3f7f9b99ff3
pull/1164/head
Richard Fuchs 5 years ago
parent 68be3d2afb
commit d466e5c326

@ -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;
}

Loading…
Cancel
Save