From 3609287344b3e559cbaa8859ee0006235bb4b56d Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Thu, 30 Jan 2020 14:05:56 +0100 Subject: [PATCH] - Fix RPZ stats RPZ_NO_OVERRIDE_ACTION check --- daemon/remote.c | 2 +- smallapp/unbound-control.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;