]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: dev: Don't enable REUSEADDR on outgoing UDP sockets
authorOndřej Surý <ondrej@isc.org>
Wed, 2 Oct 2024 13:23:19 +0000 (13:23 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 2 Oct 2024 13:23:19 +0000 (13:23 +0000)
commita6692e793c36349c2a924634b3f1f021d2d5e6f0
tree1df82732a649983c9e45a0084770ec6cef18ef49
parente2058ab4619640be7da504e57cf2adbb6570ec1c
parent4b4c550cd8bad3c24469aea169248c5ad1a8d071
[9.20] fix: dev: Don't enable REUSEADDR on outgoing UDP sockets

The outgoing UDP sockets enabled `SO_REUSEADDR` that allows sharing of the UDP sockets, but with one big caveat - the socket that was opened the last would get all traffic.  The dispatch code would ignore the invalid responses in the dns_dispatch, but this could lead to unexpected results.

Backport of MR !9569

Merge branch 'backport-ondrej/fix-outgoing-UDP-port-selection-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!9583