statzone

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

commit 719d5b2e0e6d7a2e20a55773af3d8e16817b5a1f
parent 05e2c1d8168c0ce159a93cd10e78f0517d8f38a1
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 27 Mar 2019 19:38:28 +0100

Ensure we correctly parse rdata if the zone contains a ns domain.

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

diff --git a/src/statzone.c b/src/statzone.c @@ -188,6 +188,9 @@ main(int argc, char *argv[]) { rdata = strtok(NULL, "\n"); + if (strchr(rdata, ' ')) + rdata = strtok(NULL, "\n"); + if (rdata) { HASH_FIND_STR(uniqueNS, rdata, ns);