]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Attach socket before async streamdns_resume_processing
authorColin Vidal <colin@isc.org>
Thu, 20 Nov 2025 17:52:29 +0000 (18:52 +0100)
committerColin Vidal <colin@isc.org>
Thu, 20 Nov 2025 17:52:29 +0000 (18:52 +0100)
commitfec55d786afba8bf90b1c1a6892230faaad8886f
tree4dafcc000d266de2dfdec5006904cc18727c731e
parent37d851df37f83c6addffc6d4b5f76281dbb348d1
parent7c8b517d563141271625605ddc35559f22f613bd
fix: dev: Attach socket before async streamdns_resume_processing

Call to `streamdns_resume_processing` is asynchronous but the socket
passed as argument is not attached when scheduling the call.

While there is no reproducible way (so far) to make the socket reference
number down to 0 before `streamdns_resume_processing` is called, attach
the socket before scheduling the call. This guard against an hypothetic
case where, for some reasons, the socket refcount would reach 0, and be
freed from memory when `streamdns_resume_processing` is called.

Closes #5620

Merge branch '5620-attach-socket-streamdns_resume_processing' into 'main'

See merge request isc-projects/bind9!11247