summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-06-16 13:59:57 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-06-16 13:59:57 +0100
commit06ff3d8a2625564073957c192fe15846baf898b8 (patch)
tree208a9c90b68b479fa02f74c0bad6bebfb894393b
parent8237d06ab74dce4b87089dc85a5e74baf516f25e (diff)
downloaddnsmasq-06ff3d8a2625564073957c192fe15846baf898b8.tar.gz
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.
-rw-r--r--src/forward.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/forward.c b/src/forward.c
index de36ff2..a9c0096 100644
--- a/src/forward.c
+++ b/src/forward.c
@@ -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);