]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix rdns requested_name field set-up
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jul 2021 13:08:33 +0000 (14:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Jul 2021 13:08:33 +0000 (14:08 +0100)
contrib/librdns/parse.c
contrib/librdns/resolver.c

index fbf9d3e1407ccb8d3b659810c4e2e7b32d913439..559d430a0ed09d9dae6bff2db8cfc4cb11eaa96a 100644 (file)
@@ -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;
        }
index 3dd44012e6bbefa661e5d2986666ecd5a642b17b..6036c74a8c7f195486712b9bf727a3721d6bb991 100644 (file)
@@ -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;