]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Clean quota callback after calling it
authorWitold Kręcicki <wpk@isc.org>
Wed, 1 Apr 2020 09:13:08 +0000 (11:13 +0200)
committerWitold Kręcicki <wpk@isc.org>
Wed, 13 May 2020 06:45:27 +0000 (08:45 +0200)
lib/isc/quota.c

index 137838828f344257dc3b992a272d7056eedead3d..2f69e86febb30e5d0f9abf9ecc97b4324fe2de8d 100644 (file)
@@ -119,6 +119,8 @@ quota_release(isc_quota_t *quota) {
                UNLOCK(&quota->cblock);
                if (cb != NULL) {
                        cb->cb_func(quota, cb->data);
+                       cb->cb_func = NULL;
+                       cb->data = NULL;
                        return;
                }
        }