aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-15 20:07:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-15 20:07:50 +0000
commit3e9e08d54ecad28e8d3cb37ee4fd2f2082db4d38 (patch)
treec63f634a9411fe1f7c3371252f5ae7a8a3f70b25 /contrib
parent6e41e768d31d811df59502aaab95312203e1b1e2 (diff)
downloadrspamd-3e9e08d54ecad28e8d3cb37ee4fd2f2082db4d38.tar.gz
rspamd-3e9e08d54ecad28e8d3cb37ee4fd2f2082db4d38.zip
[Fix] Rdns: Fix multiple replies in fake replies
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/resolver.c4
1 files 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);