]> 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)
committerOndřej Surý <ondrej@isc.org>
Wed, 3 Jun 2020 21:00:52 +0000 (23:00 +0200)
(cherry picked from commit 2f252a10687f2c594c92b860d8eb7b0bc5728cec)

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;
                }
        }