]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix XSK-enabled check when reconnecting a backend 13914/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Mar 2024 09:20:08 +0000 (10:20 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Mar 2024 09:20:08 +0000 (10:20 +0100)
commitbb218803ee8348a4ce9cd11b97681d6eba4082cf
treeb33ae8d78df137e2105af67a447b668612aebc5a
parent2bd2f0ca28d0954d63499cdeb9b14f61342d6448
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.
pdns/dnsdistdist/dnsdist-backend.cc