- Fix RPZ stats RPZ_NO_OVERRIDE_ACTION check

This commit is contained in:
Ralph Dolmans 2020-01-30 14:05:56 +01:00
parent 88a706acf8
commit 3609287344
2 changed files with 2 additions and 2 deletions

View file

@ -1048,7 +1048,7 @@ print_ext(RES* ssl, struct ub_stats_info* s)
(unsigned)s->svr.key_cache_count)) return 0;
/* applied RPZ actions */
for(i=0; i<UB_STATS_RPZ_ACTION_NUM; i++) {
if((enum rpz_action)s->svr.rpz_action[i] == RPZ_NO_OVERRIDE_ACTION)
if(i == RPZ_NO_OVERRIDE_ACTION)
continue;
if(inhibit_zero && s->svr.rpz_action[i] == 0)
continue;

View file

@ -375,7 +375,7 @@ static void print_extended(struct ub_stats_info* s)
PR_UL("key.cache.count", s->svr.key_cache_count);
/* applied RPZ actions */
for(i=0; i<UB_STATS_RPZ_ACTION_NUM; i++) {
if((enum rpz_action)s->svr.rpz_action[i] == RPZ_NO_OVERRIDE_ACTION)
if(i == RPZ_NO_OVERRIDE_ACTION)
continue;
if(inhibit_zero && s->svr.rpz_action[i] == 0)
continue;