]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
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)
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


Trivial merge