resolved: delay server feature detection
authorRonan Pigott <ronan@rjp.ie>
Wed, 20 Dec 2023 22:16:41 +0000 (15:16 -0700)
committerRonan Pigott <ronan@rjp.ie>
Thu, 4 Jan 2024 00:25:07 +0000 (17:25 -0700)
commit3fcd83645a18869ff21044880d582bc101967ea9
tree1ce70a16f8809b7828125f66056aa925c1e52319
parent980cb160ebe7b058c601577cf72cbd2162d7d054
resolved: delay server feature detection

Some fields of the DnsPacket are not populated until we extract an
answer, like p->opt, despite being referenced by macros like
DNS_PACKET_RCODE. We can reorder some of the basic checks to follow
dns_packet_extract.
src/resolve/resolved-dns-transaction.c