From: Frantisek Tobias Date: Mon, 6 Oct 2025 08:42:31 +0000 (+0200) Subject: daemon/defer: replace is_accounting kr_assert with if X-Git-Tag: v6.2.0~2^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8ecac153c34ca25d9552605aa5dc4c344649e3;p=thirdparty%2Fknot-resolver.git daemon/defer: replace is_accounting kr_assert with if this assertion wasn't compatible with the subsession design of DoQ --- diff --git a/daemon/defer.h b/daemon/defer.h index 10b8b56b8..8eae1033f 100644 --- a/daemon/defer.h +++ b/daemon/defer.h @@ -91,7 +91,7 @@ static inline void defer_sample_addr(const union kr_sockaddr *addr, bool stream) static inline void defer_sample_start_stamp(uint64_t stamp) { if (!defer) return; - // kr_assert(!defer_sample_state.is_accounting); + if (defer_sample_state.is_accounting) return; defer_sample_state.is_accounting = true; defer_sample_state.stamp = stamp; defer_sample_state.addr.ip.sa_family = AF_UNSPEC;