mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user