]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: make bypass tests work 37902/head
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2025 16:28:16 +0000 (18:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2025 16:30:06 +0000 (18:30 +0200)
commit884fb39f33d098e15fad7647bbeef0a5569402cb
tree31f203813f8bae4c7e8237bc9c92aa6ac616ce97
parent576a2bc79b679efa4211cc44fa861a2629619577
resolved: make bypass tests work

It's not sufficient to append a DNS key to a packet, we must also update
the qdcount too. We got this right in most tests but didn#t here.
Moreover, we must extract the packet then to actually have a DnsQuestion
properly filled in.

Fix that. Without this the tests didn't test anything reasonable.
src/resolve/test-dns-query.c