aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-08 15:40:19 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-08 15:40:19 +0100
commit0ce49725b95dee93e96a41580a2ed4d1ecda4966 (patch)
tree6dc8b75877bfa53d38fb1ddd9743126e9cafc343 /contrib
parent9331793874de2aed80a056e1d3aea5b08ad28527 (diff)
downloadrspamd-0ce49725b95dee93e96a41580a2ed4d1ecda4966.tar.gz
rspamd-0ce49725b95dee93e96a41580a2ed4d1ecda4966.zip
[Fix] Save faked code into fake dns record
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/resolver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c
index 3abb17304..b9b156c5e 100644
--- a/contrib/librdns/resolver.c
+++ b/contrib/librdns/resolver.c
@@ -994,6 +994,8 @@ void rdns_resolver_set_fake_reply (struct rdns_resolver *resolver,
abort ();
}
+ fake_rep->rcode = rcode;
+
memcpy (&fake_rep->key, srch, sizeof (*srch) + len);
if (reply) {