statzone

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

commit 615b5e60072c6ed941fa8867d8224f5c9c9118f4
parent 719d5b2e0e6d7a2e20a55773af3d8e16817b5a1f
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 27 Mar 2019 23:18:48 +0100

Make sure results.domains is greater than zero before decrementing.

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

diff --git a/src/statzone.c b/src/statzone.c @@ -211,7 +211,8 @@ main(int argc, char *argv[]) { } /* Don't count origin */ - results.domains--; + if (results.domains) + results.domains--; /* Stopping timer */ clock_gettime(CLOCK_MONOTONIC, &end);