commit 3e9e08d: [Fix] Rdns: Fix multiple replies in fake replies

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Dec 27 18:28:08 UTC 2018


Author: Vsevolod Stakhov
Date: 2018-12-15 20:07:50 +0000
URL: https://github.com/rspamd/rspamd/commit/3e9e08d54ecad28e8d3cb37ee4fd2f2082db4d38

[Fix] Rdns: Fix multiple replies in fake replies

---
 contrib/librdns/resolver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c
index b9b156c5e..b38e90514 100644
--- a/contrib/librdns/resolver.c
+++ b/contrib/librdns/resolver.c
@@ -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);


More information about the Commits mailing list