]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix detaching the extra quotas in the quota_test
authorWitold Kręcicki <wpk@isc.org>
Tue, 21 Apr 2020 11:33:42 +0000 (13:33 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 21 Apr 2020 12:17:20 +0000 (14:17 +0200)
lib/isc/tests/quota_test.c

index 997b253fb207126a1741f9c4311a36d3c6f84a94..60b66ede442390b7f549af1ae3b7f264997e2868 100644 (file)
@@ -210,7 +210,8 @@ isc_quota_callback_test(void **state) {
 
        /* Release the quotas that we did not released in the callback */
        for (i = 0; i < 5; i++) {
-               isc_quota_detach(&quotas[i]);
+               qp = &quota;
+               isc_quota_detach(&qp);
        }
 
        for (i = 6; i < 20; i++) {