diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-26 14:08:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-26 14:08:33 +0100 |
commit | 49dd721646ed4a86d80a2b0073f22b7c0e51b109 (patch) | |
tree | e225d8300f2c2a1e551804fcde157db2c8f6b300 /contrib/librdns | |
parent | 1dfdb2625a10f43571dcf296ebc58fd057e31bb1 (diff) | |
download | rspamd-49dd721646ed4a86d80a2b0073f22b7c0e51b109.tar.gz rspamd-49dd721646ed4a86d80a2b0073f22b7c0e51b109.zip |
[Minor] Fix rdns requested_name field set-up
Diffstat (limited to 'contrib/librdns')
-rw-r--r-- | contrib/librdns/parse.c | 2 | ||||
-rw-r--r-- | contrib/librdns/resolver.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/contrib/librdns/parse.c b/contrib/librdns/parse.c index fbf9d3e14..559d430a0 100644 --- a/contrib/librdns/parse.c +++ b/contrib/librdns/parse.c @@ -258,7 +258,7 @@ rdns_parse_rr (struct rdns_resolver *resolver, bool parsed = false; /* Skip the whole name */ - if (! rdns_parse_labels (resolver, in, NULL, &p, rep, remain, false)) { + if (!rdns_parse_labels (resolver, in, NULL, &p, rep, remain, false)) { rdns_info ("bad RR name"); return -1; } diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c index 3dd44012e..6036c74a8 100644 --- a/contrib/librdns/resolver.c +++ b/contrib/librdns/resolver.c @@ -150,6 +150,7 @@ rdns_make_reply (struct rdns_request *req, enum dns_rcode rcode) rep->code = rcode; req->reply = rep; rep->authenticated = false; + rep->requested_name = req->requested_names[0].name; } return rep; |