commit 4e1046341e265a73b7511415fc0e057a7501089d
parent 66dbaeff634cfc3ca24e37fbe0573e4c6c43c5e0
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 26 Mar 2019 14:39:45 +0100
Fix A and AAAA records count, don't mistake domains as RR types.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -150,11 +150,11 @@ main(int argc, char *argv[]) {
continue;
}
- if (!strcmp(token_lc, "a")) {
+ if (token_count && !strcmp(token_lc, "a")) {
results.a++;
}
- if (!strcmp(token_lc, "aaaa")) {
+ if (token_count && !strcmp(token_lc, "aaaa")) {
results.aaaa++;
}