From 3e9e08d54ecad28e8d3cb37ee4fd2f2082db4d38 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 15 Dec 2018 20:07:50 +0000 Subject: [Fix] Rdns: Fix multiple replies in fake replies --- contrib/librdns/resolver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/librdns') 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); -- cgit v1.2.3