statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit 59cd1826c3ebba2b8b5ced23ab152cd7141fa998
parent 4e1046341e265a73b7511415fc0e057a7501089d
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 26 Mar 2019 14:41:43 +0100

Handle and skip comments at any position.

Diffstat:
Msrc/statzone.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/statzone.c b/src/statzone.c @@ -134,6 +134,11 @@ main(int argc, char *argv[]) { domain = strtolower(token); while (token) { + if (*token == ';') { /* Comments */ + token = NULL; + continue; + } + token_lc = strtolower(token); if (token_count && !strcmp(token_lc, "nsec")) { token = NULL;