mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-23 18:47:40 -04:00
dns_delegset_fromnsrdataset() used isc_g_mctx for the transient delegset it builds from a DNS NS rdataset. That hides delegation data in the global default context instead of accounting it against the subsystem that owns it: a resolver fctx, a view, or a query context. Take an explicit mctx parameter so callers can direct the allocation to the right place, and update the three call sites: - lib/dns/view.c:1189 (dns_view_bestzonecut fallback) uses view->mctx - lib/dns/resolver.c:7071 (resume_dslookup) uses fctx->mctx - lib/ns/query.c:8672 (query_delegation_recurse) uses the client manager's mctx Also tighten delegdb cleanup to run inside the same write transaction as the insert: delegdb_node_prepare() now returns the size of the new node, and delegdb_cleanup() takes the caller's open qp so that the overmem reclamation and the insert share one commit instead of doing two nested write transactions. |
||
|---|---|---|
| .. | ||
| dns | ||
| isc | ||
| isccc | ||
| isccfg | ||
| ns | ||
| .gitignore | ||
| meson.build | ||