resolved: Don't omit AD bit in reply if DO is set in the query
authorJack Dähn <jack@jkdhn.me>
Tue, 3 Aug 2021 06:07:05 +0000 (08:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Aug 2021 14:41:33 +0000 (16:41 +0200)
commitb553abd8aed0f6fbff9973882fb08c3aec1d9400
tree20e667a473d89092964a7c38c83ed11cff31f5c0
parentd84f316ccec389f72ac6b1b6626aa72b697d5c1d
resolved: Don't omit AD bit in reply if DO is set in the query

Set the AD bit in the response if the data is authenticated and AD or DO is set in the query, as suggested by section 5.8 of RFC6840.

Fixes #20332
src/resolve/resolved-dns-stub.c