From 7a1ba7785dfe092dd9c73c284ade4ba9fa6a3f57 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 17 Sep 2008 11:33:40 +0000 Subject: [PATCH] rcode stat printout fixed. git-svn-id: file:///svn/unbound/trunk@1244 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/remote.c | 2 +- doc/Changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/remote.c b/daemon/remote.c index 8c5ae32fc..7543892ea 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -745,7 +745,7 @@ print_ext(SSL* ssl, struct stats_info* s) snprintf(nm, sizeof(nm), "RCODE%d", i); } if(!ssl_printf(ssl, "num.answer.rcode.%s"SQ"%u\n", - nm, (unsigned)s->svr.qopcode[i])) return 0; + nm, (unsigned)s->svr.ans_rcode[i])) return 0; } if(!inhibit_zero || s->svr.ans_rcode_nodata) { if(!ssl_printf(ssl, "num.answer.rcode.nodata"SQ"%u\n", diff --git a/doc/Changelog b/doc/Changelog index 7ee684001..9d1007123 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - ldns trunk no longer exports b32 functions, provide compat. - ldns tarball updated. - testcode/ldns-testpkts.c const fixups. + - fixed rcode stat printout. 16 September 2008: Wouter - extended-statistics: yesno config option.