commit 8c52fd25e6bb5e98e444c485aabe0da73e0a38da
parent 953bbf10c8161d9a87adb9e67cd8335223410828
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 25 Mar 2019 12:18:45 +0100
Correctly skip NSEC, NSEC3 and RRSIG records, we previously skipped domains.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -135,17 +135,17 @@ main(int argc, char *argv[]) {
while (token) {
token_lc = strtolower(token);
- if (!strcmp(token_lc, "nsec")) {
+ if (token_count && !strcmp(token_lc, "nsec")) {
token = NULL;
continue;
}
- if (!strcmp(token_lc, "nsec3")) {
+ if (token_count && !strcmp(token_lc, "nsec3")) {
token = NULL;
continue;
}
- if (!strcmp(token_lc, "rrsig")) {
+ if (token_count && !strcmp(token_lc, "rrsig")) {
token = NULL;
continue;
}