]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix XSK-enabled check when reconnecting a backend 13944/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Mar 2024 09:20:08 +0000 (10:20 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 Mar 2024 09:37:36 +0000 (10:37 +0100)
commitc7e86d44986b25fa02e5831b34352779fd974e85
tree05f4087b59c088568025dc9a6b50096f0a212e39
parent5728d0adb5b49c08caeec15224a720b7ced4bca5
dnsdist: Fix XSK-enabled check when reconnecting a backend

The check was reverted, meaning that we did not properly remove an address:port from the XSK map when reconnecting a backend, and actually tried to remove an entry from a non-existing map when XSK is compiled in but not enabled, triggering a:
```
Error getting the XSK destination addresses map path '/sys/fs/bpf/dnsdist/xsk-destinations-v4'
```
message.

(cherry picked from commit bb218803ee8348a4ce9cd11b97681d6eba4082cf)
pdns/dnsdistdist/dnsdist-backend.cc