]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check the result of dns_zone_getdb call
authorMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 09:33:46 +0000 (20:33 +1100)
committerMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 09:33:46 +0000 (20:33 +1100)
bin/check/check-tool.c

index 83ef5e85a117ebf2fbf02dc3e726d881bf95de07..eee639ee9b8c9006145a0e068966b5880096340b 100644 (file)
@@ -599,7 +599,7 @@ check_ttls(dns_zone_t *zone, dns_ttl_t maxttl) {
        name = dns_fixedname_name(&fname);
        dns_rdataset_init(&rdataset);
 
-       dns_zone_getdb(zone, &db);
+       CHECK(dns_zone_getdb(zone, &db));
        INSIST(db != NULL);
 
        CHECK(dns_db_newversion(db, &version));