aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/dns_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-11 14:49:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-11 14:49:10 +0100
commit6b07a361d0f9a97ea2734add840c115e1dd183fd (patch)
tree5566dfea8f7886e48c7ca2584bf7a9ffb735f5fc /contrib/librdns/dns_private.h
parent0e654a69f908ae3abe19663dc192f1dbc45d8ed0 (diff)
downloadrspamd-6b07a361d0f9a97ea2734add840c115e1dd183fd.tar.gz
rspamd-6b07a361d0f9a97ea2734add840c115e1dd183fd.zip
[Minor] Improve fake names processing
Diffstat (limited to 'contrib/librdns/dns_private.h')
-rw-r--r--contrib/librdns/dns_private.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h
index 44bb3dd84..a82ebd62e 100644
--- a/contrib/librdns/dns_private.h
+++ b/contrib/librdns/dns_private.h
@@ -111,11 +111,16 @@ struct rdns_io_channel {
ref_entry_t ref;
};
-struct rdns_fake_reply {
- char *request;
+struct rdns_fake_reply_idx {
enum dns_rcode rcode;
+ unsigned len;
+ char request[0];
+};
+
+struct rdns_fake_reply {
struct rdns_reply_entry *result;
UT_hash_handle hh;
+ struct rdns_fake_reply_idx key;
};