From c4f91575cafe520ab7c31e0715be3f1924a6b3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Wed, 1 Apr 2020 11:13:08 +0200 Subject: [PATCH] Clean quota callback after calling it (cherry picked from commit 2f252a10687f2c594c92b860d8eb7b0bc5728cec) --- lib/isc/quota.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/isc/quota.c b/lib/isc/quota.c index 137838828f..2f69e86feb 100644 --- a/lib/isc/quota.c +++ b/lib/isc/quota.c @@ -119,6 +119,8 @@ quota_release(isc_quota_t *quota) { UNLOCK("a->cblock); if (cb != NULL) { cb->cb_func(quota, cb->data); + cb->cb_func = NULL; + cb->data = NULL; return; } }