diff --git a/daemon/remote.c b/daemon/remote.c index 6fc152858..68186937a 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -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; isvr.rpz_action[i] == RPZ_NO_OVERRIDE_ACTION) + if(i == RPZ_NO_OVERRIDE_ACTION) continue; if(inhibit_zero && s->svr.rpz_action[i] == 0) continue; diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index f97aa393f..c6263c824 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -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; isvr.rpz_action[i] == RPZ_NO_OVERRIDE_ACTION) + if(i == RPZ_NO_OVERRIDE_ACTION) continue; if(inhibit_zero && s->svr.rpz_action[i] == 0) continue;