statzone

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

commit 4db318da2655b5efd26a38a473714c97e22463a2
parent 59cd1826c3ebba2b8b5ced23ab152cd7141fa998
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 27 Mar 2019 11:04:54 +0100

Use strdup() when adding a signed domain to the list.

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

diff --git a/src/statzone.c b/src/statzone.c @@ -170,7 +170,7 @@ main(int argc, char *argv[]) { if (!ds) { ds = malloc(sizeof(struct my_struct)); - ds->domain = domain; + ds->domain = strdup(domain); HASH_ADD_STR(signedDomains, domain, ds); } }