diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-08 15:40:19 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-08 15:40:19 +0100 |
commit | 0ce49725b95dee93e96a41580a2ed4d1ecda4966 (patch) | |
tree | 6dc8b75877bfa53d38fb1ddd9743126e9cafc343 /contrib | |
parent | 9331793874de2aed80a056e1d3aea5b08ad28527 (diff) | |
download | rspamd-0ce49725b95dee93e96a41580a2ed4d1ecda4966.tar.gz rspamd-0ce49725b95dee93e96a41580a2ed4d1ecda4966.zip |
[Fix] Save faked code into fake dns record
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/librdns/resolver.c | 2 |
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) { |