]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check isc_ht_init
authorMark Andrews <marka@isc.org>
Sat, 14 Oct 2017 21:34:39 +0000 (08:34 +1100)
committerMark Andrews <marka@isc.org>
Sat, 14 Oct 2017 21:34:39 +0000 (08:34 +1100)
lib/isc/tests/ht_test.c

index 7807e7a41f6f278f5098a127e9aedd0ff531bf07..ee0b41d375fb1632433db196be0701436af189e1 100644 (file)
@@ -48,7 +48,10 @@ static void test_ht_full(int bits, int count) {
                                  NULL, &mctx, 0);
        ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
 
-       isc_ht_init(&ht, mctx, bits);
+       result = isc_ht_init(&ht, mctx, bits);
+       ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
+       ATF_REQUIRE(ht != NULL);
+
        for (i = 1; i < count; i++) {
                /*
                 * Note: snprintf() is followed with strlcat()