Log the correct name when we retry a DNSSEC query.

If we retry a DNSSEC query because our client retries on us, and
we have an answer but are waiting on a DNSSEC query to validate it,
log the name of the DNSSEC query, not the client's query.
This commit is contained in:
Simon Kelley
2021-06-16 13:59:57 +01:00
parent 8237d06ab7
commit 06ff3d8a26

View File

@@ -340,7 +340,9 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
blockdata_retrieve(forward->stash, forward->stash_len, (void *)header);
plen = forward->stash_len;
/* get query for logging. */
extract_request(header, plen, daemon->namebuff, NULL);
if (find_pseudoheader(header, plen, NULL, &pheader, &is_sign, NULL) && !is_sign)
PUTSHORT(SAFE_PKTSZ, pheader);