]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Rdns: Fix multiple replies in fake replies
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 15 Dec 2018 20:07:50 +0000 (20:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 15 Dec 2018 20:07:50 +0000 (20:07 +0000)
contrib/librdns/resolver.c

index b9b156c5e97934c2f63ce58efcd49bc68e0a8e3f..b38e90514e54af8edce6d2013a53545baa1d54a1 100644 (file)
@@ -984,7 +984,7 @@ void rdns_resolver_set_fake_reply (struct rdns_resolver *resolver,
                fake_rep->rcode = rcode;
 
                if (reply) {
-                       DL_APPEND (fake_rep->result, reply);
+                       DL_CONCAT (fake_rep->result, reply);
                }
        }
        else {
@@ -999,7 +999,7 @@ void rdns_resolver_set_fake_reply (struct rdns_resolver *resolver,
                memcpy (&fake_rep->key, srch, sizeof (*srch) + len);
 
                if (reply) {
-                       DL_APPEND (fake_rep->result, reply);
+                       DL_CONCAT (fake_rep->result, reply);
                }
 
                HASH_ADD (hh, resolver->fake_elts, key, sizeof (*srch) + len, fake_rep);